Re: How to have a shared integer variable in application
Re: How to have a shared integer variable in application
- Subject: Re: How to have a shared integer variable in application
- From: Steve Christensen <email@hidden>
- Date: Thu, 4 Oct 2007 17:53:18 -0700
On Oct 4, 2007, at 5:27 PM, Christian Schmitz wrote:
Dominik Pich <email@hidden> wrote:
Have a singleton object and give that an attribute (or a dict) e.g
[[GlobalPool defaultPool] setValue:x forKey:@"y"]; or something like
that
I don't think Cocoa will like it if I load several modules with all
the
same class.
I just need a pool like you suggested, but being part of the Cocoa
framework.
If you're not too hung up on exclusively using Cocoa, you could
install your own Gestalt selector and then, with appropriate locking,
modify the selector's contents. Under OS X, Gestalt is only process-
wide vs its system-wide behavior under OS 6 through 9.
steve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden