• 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
Shared objects and other data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shared objects and other data


  • Subject: Shared objects and other data
  • From: email@hidden
  • Date: Mon, 1 Apr 2002 23:08:26 EST

What is the best way to implement an instance of a class so that it is
available to all applications that request the shared object? Would it be
best to make this a static global object in the source file for the class
which is instantiated upon initializing the class with a class method? Also,
how should data that is used in several methods be dealt with; should such
data be declared as static global in the source file for the class, or is
there a more OOP style for doing this? (I don't want to store the data in the
class because then it would be recreated along with each new instantiation
of the class and I don't want to have to recalculate the data each time in
order to keep it from being outside of the class).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Shared objects and other data
      • From: Andy Lee <email@hidden>
  • Prev by Date: Renaming a project
  • Next by Date: Shared objects and other data
  • Previous by thread: Re: Renaming a project
  • Next by thread: Re: Shared objects and other data
  • Index(es):
    • Date
    • Thread