Ask a Question related to Mac Programming, Design and Development.
-
Mike H. #1
Shared memory in OS X?
I am porting an app from Classic to OS X...and the biggest problem I've run
into is how to get live notification of changes to prefs.
The app consists of a "daemon" and a preference-setter. The daemon is
Mach-O, the preference-setter is written in Carbon.
Right now, I just have the daemon continuously polling a file, which is not
the best way to do it. Is there anyway for a Carbon app to instantly
communicate with a Mach-O app? I'd prefer to avoid AppleEvents...
Thanks!
Mike Hunson
Mike H. Guest
-
Shared Memory/Shared Buffers
I have noticed that I can't set the shared buffers above 15512 which is exactly 128MB of RAM. Even if I set /proc/sys/kernel/shmmax above that,... -
Shared memory and Mac OS X
The problem with not being able to set shmmax and shmall in a startup script in Mac OS X is not that you are setting them too late in the boot... -
Shared memory. Error.
Hi, - When starting informix the following error appears: 12:52:14 Informix Dynamic Server 2000 Initialized -- Shared Memory Initialized.... -
extended shared memory
Hi, I do have a problem running my app cause it needs more than 11 shared memory segments, therefore I've set the env EXTSHM=ON according to the... -
I think I need a DB with no shared memory
Whilst installing DBD::Informix, I encountered the following problem bash-2.03# esql -o esqlbasic esqlbasic.ec bash-2.03# ./esqlbasic... -
Frederick Cheung #2
Re: Shared memory in OS X?
On Mon, 29 Sep 2003, Mike H. wrote:
For actual shared memory, there's always shmctl and friends, but for what> I am porting an app from Classic to OS X...and the biggest problem I've run
> into is how to get live notification of changes to prefs.
>
> The app consists of a "daemon" and a preference-setter. The daemon is
> Mach-O, the preference-setter is written in Carbon.
>
> Right now, I just have the daemon continuously
>polling a file, which is not
> the best way to do it. Is there anyway for a Carbon app to instantly
> communicate with a Mach-O app? I'd prefer to avoid AppleEvents...
you are trying to do CFMessagePort is probably more appropriate
Or you could just send the daemon a signal telling it to reread its
configuration file
Why are you so hesitant to use apple events?
Fred>
> Thanks!
>
> Mike Hunson
>
>Frederick Cheung Guest
-
Paul Mitchum #3
Re: Shared memory in OS X?
Mike H. <nospam@endspam.org> wrote:
Have a look-see: <http://makeashorterlink.com/?F5A413C06>> I am porting an app from Classic to OS X...and the biggest problem I've run
> into is how to get live notification of changes to prefs.
>
> The app consists of a "daemon" and a preference-setter. The daemon is
> Mach-O, the preference-setter is written in Carbon.
>
> Right now, I just have the daemon continuously polling a file, which is not
> the best way to do it. Is there anyway for a Carbon app to instantly
> communicate with a Mach-O app? I'd prefer to avoid AppleEvents...
Your best bet looks to be a Core Foundation distributed notification. A
less Apple-oriented solution would be pipes or sockets, but those would
still require polling the filesystem.
Paul Mitchum Guest
-
Eric Albert #4
Re: Shared memory in OS X?
In article <1g21w8l.16i6e0qzjuo6hN%usenet@mile23.com.r3m0v3 >,
[email]usenet@mile23.com[/email].r3m0v3 (Paul Mitchum) wrote:
I'll second Paul's suggestion. CFNotifications are the standard way to> Mike H. <nospam@endspam.org> wrote:
>>> > I am porting an app from Classic to OS X...and the biggest problem I've run
> > into is how to get live notification of changes to prefs.
> >
> > The app consists of a "daemon" and a preference-setter. The daemon is
> > Mach-O, the preference-setter is written in Carbon.
> >
> > Right now, I just have the daemon continuously polling a file, which is not
> > the best way to do it. Is there anyway for a Carbon app to instantly
> > communicate with a Mach-O app? I'd prefer to avoid AppleEvents...
> Have a look-see: <http://makeashorterlink.com/?F5A413C06>
>
> Your best bet looks to be a Core Foundation distributed notification. A
> less Apple-oriented solution would be pipes or sockets, but those would
> still require polling the filesystem.
do this.
-Eric
--
Eric Albert [email]ejalbert@stanford.edu[/email]
[url]http://rescomp.stanford.edu/~ejalbert/[/url]
Eric Albert Guest



Reply With Quote

