• 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: Shared Instance of a class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Shared Instance of a class


  • Subject: RE: Shared Instance of a class
  • From: "Christopher Hickman" <email@hidden>
  • Date: Fri, 19 May 2006 14:28:41 -0400

Perhaps you could add an outlet to File's Owner and connect your object to
it?

> -----Original Message-----
> From: cocoa-dev-bounces+tophu=email@hidden
> [mailto:cocoa-dev-bounces+tophu=email@hidden] On
> Behalf Of Mike Abdullah
> Sent: Friday, May 19, 2006 1:43 PM
> To: email@hidden
> Subject: Shared Instance of a class
>
> I have a custom class that I instanciate in my MainMenu nib.  What I
> want to do is be able to issue the command:
>
> [MyClass sharedInstance]
>
> and get that particular instance of the class.  I know how to
> do this
> with a class that is only instanciated once the sharedInstance
> message is received, but the object pre-exists.
>
> NSDocumentController is capable of this.  Any ideas?
>
> Mike.
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Shared Instance of a class (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Shared Instance of a class
  • Next by Date: Re: Shared Instance of a class
  • Previous by thread: Shared Instance of a class
  • Next by thread: Re: Shared Instance of a class
  • Index(es):
    • Date
    • Thread