• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to have a shared integer variable in application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to have a shared integer variable in application
      • From: email@hidden (Christian Schmitz)
References: 
 >How to have a shared integer variable in application (From: email@hidden (Christian Schmitz))

  • Prev by Date: Re: Source code for debugging
  • Next by Date: Re: How to have a shared integer variable in application
  • Previous by thread: How to have a shared integer variable in application
  • Next by thread: Re: How to have a shared integer variable in application
  • Index(es):
    • Date
    • Thread