Re: avoiding to open window multiple times
Re: avoiding to open window multiple times
- Subject: Re: avoiding to open window multiple times
- From: Jerry Krinock <email@hidden>
- Date: Sun, 19 Feb 2006 15:57:09 -0800
- Thread-topic: avoiding to open window multiple times
on 06/02/19 08:16, Joris Mans at email@hidden wrote:
> Is this a good way of handling this? Isnt there a better way?
Maybe not "better", but "another" way: Create each of these window
controllers as "singletons", which are kind of glorified global variables.
Your Xcode Cocoa documentation has a document "Creating a Singleton
Instance" which you might want to read. I just make a global variable
assigned to nil, and before allocating a new one test that it != nil.
Depending on the long-range business plan for your application, what you
have already done may be just fine. It works and you understand it.
_______________________________________________
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