• 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: Rosyna <email@hidden>
  • Date: Thu, 2 Aug 2001 16:36:20 -0700

If I do [self release] it always crashes. I can't make it auto release, then it disappears before I want it to and it crashes at that too. Should I not be telling self to release?

Its for a different window, I just had the preferences code done already.

- (id)init {
self = [super init];
if (![NSBundle loadNibNamed:@"myNib" owner:self]) {
NSLog(@"Failed to load myNib");
NSBeep();
return self;
}
return self;
}

I wasn't quite sure how to implement joar's recommendation.

Ack, at 8/1/01, Adrian Ridner said:

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.

--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insane People


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

  • Prev by Date: Re: NSAWTView: please vote
  • Next by Date: Re: NSMutableString, NSString ,character for character
  • 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