• 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
awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")


  • Subject: awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")
  • From: m <email@hidden>
  • Date: Wed, 18 Feb 2004 13:56:38 -0800

On Feb 13, 2004, at 4:24 PM, Louis C. Sacha wrote:

In terms of a common concrete example of awakeFromNib being called multiple times on a specific instance of a class, it happens in subclasses of NSDocument. In that case, what happens is that awakeFromNib is called for the NSDocument (or subclass) instance when the nib is loaded, and then called again when the document is saved using "Save as...".

Coincidently, I just got bit by this (awakeFromNib getting called again for instances when doing a "Save As"). Can anybody explain what the rationale for calling awakeFromNib more than once is? I guess more generally, why is the nib being loaded again (or is it) on a "Save As" operation?

_murat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")
      • From: Ryan Bates <email@hidden>
References: 
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: Rainer Brockerhoff <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: "Louis C. Sacha" <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: Rainer Brockerhoff <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: "Louis C. Sacha" <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: Rainer Brockerhoff <email@hidden>)
 >Re: static objects "autoreleased with no pool in place - just leaking" (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Re: passing arg 2 of 'NSApplicationMain' from incompatible pointer type
  • Next by Date: Re: Disabling an NSTableView
  • Previous by thread: Re: static objects "autoreleased with no pool in place - just leaking"
  • Next by thread: Re: awakeFromNib called more than once per instance (was Re: static objects "autoreleased with no pool in place - just leaking")
  • Index(es):
    • Date
    • Thread