• 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: Making multiple windows from the same class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making multiple windows from the same class


  • Subject: Re: Making multiple windows from the same class
  • From: Adrian Ridner <email@hidden>
  • Date: Wed, 1 Aug 2001 11:54:30 -0700

Rosyna

That looks right! You should release it inside windowWillClose or
windowDidClose. I'm curious as how you are loading your Preference nib
file and display in it? and why would you want to have multiple
instances of the Preferences window instead of a shared one? But the
code looks correct.

Adrian
***************************************
Adrian Ridner
Mac Software Team
Hewlett-Packard
***************************************
Soyons Rialistes, Demandons L'Impossible.

On Wednesday, August 1, 2001, at 04:42 AM, Rosyna wrote:

> I have the following code for making a preference window (and it only
> allows it to be opened once, as it should):
>
> - (pref *)preferencesController
> {
> if (!preferencesController) {
> preferencesController = [[pref alloc] init];
> }
> return preferencesController;
> }
>
> am I right to assume changing it to:
>
> - (pref *)preferencesController
> {
>
> preferencesController = [[pref alloc] init];
>
> return preferencesController;
> }
>
> will allow multiple windows?
>
> If this does, how do I release of the controllers once the window is
> closed? I am thinking this would be done in windowWillClose.
> -- Sincerely,
> Rosyna Keller
> Technical Support/Holy Knight/Always needs a hug
>
> Unsanity: Unsane Tools for Insane People
> _______________________________________________
> cocoa-dev mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: Making multiple windows from the same class
      • From: Rosyna <email@hidden>
References: 
 >Making multiple windows from the same class (From: Rosyna <email@hidden>)

  • Prev by Date: question on opengl
  • Next by Date: Re: Looping worker threads - NSString vs sprintf
  • Previous by thread: Re: Making multiple windows from the same class
  • Next by thread: Re: Making multiple windows from the same class
  • Index(es):
    • Date
    • Thread