• 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: avoiding to open window multiple times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >avoiding to open window multiple times (From: "Joris Mans" <email@hidden>)

  • Prev by Date: _fastCStringContents selector not recognized
  • Next by Date: Re: Checkbox binding calling "set" only when checked
  • Previous by thread: avoiding to open window multiple times
  • Next by thread: Re: Core Data Key-value question
  • Index(es):
    • Date
    • Thread