Re: Object scope - or where to put objects that should always be accessible
Re: Object scope - or where to put objects that should always be accessible
- Subject: Re: Object scope - or where to put objects that should always be accessible
- From: Andréas Saudemont <email@hidden>
- Date: Wed, 27 Oct 2004 09:14:19 +0200
Hi Ole,
>
I'm getting into Cocoa development and have a bit of a problem with the
>
object-structure. I see that objects are being instantiated by the nib (for
>
instance) but where do I put objects that I want to be globally accessible.
You can also define a delegate for your NSApplication instance and
manage the database connection from the applicationDidFinishLaunching:
and applicationWillTerminate: delegate methods.
See
http://andreassaudemont.net/2004/10/extending-nsapplication for
more details.
Andréas
--
http://andreassaudemont.net/
_______________________________________________
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