• 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: 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


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

  • Prev by Date: Re: How to have a shared integer variable in application
  • Next by Date: multiple methods named 'xxx' found.
  • Previous by thread: Re: 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