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: Dominik Pich <email@hidden>
- Date: Fri, 5 Oct 2007 02:23:19 +0200
Have a singleton object and give that an attribute (or a dict)
e.g
[[GlobalPool defaultPool] setValue:x forKey:@"y"]; or something like
that
On 05.10.2007, at 01:47, Christian Schmitz wrote:
Hi,
I have an application where I provide several plugins.
I want to have the first plugin set an integer to start value and
later
allow all plugins to get/set this value.
How do I do that?
I tried with NSThread threadDictionary, but this one forgets values
when
I refersh my NSAutoRelease Pools.
Also NSPasteboard seems not to work as the data is not per
application.
Any other idea?
Some global Cocoa shared object list which I can use?
Gruß
Christian
_______________________________________________
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
_______________________________________________
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