• 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: Double call of awakeFromNib on custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double call of awakeFromNib on custom view


  • Subject: Re: Double call of awakeFromNib on custom view
  • From: Vince DeMarco <email@hidden>
  • Date: Mon, 11 Feb 2002 09:28:46 -0800

On Sunday, February 10, 2002, at 01:52 PM, Manfred Lippert wrote:

Hi,

I have a window with a custom view in a nib.
At some place in my code I load that nib with [NSBundle loadNibNamed ...]
.
In my controller class (the owner) of that nib I've implemented
awakeFromNib.
In my custom view class I've also implemented awakeFromNib.


Is this controller associated with any other nib files in your application?
?

vince

The problem:
awakeFromNib on the custom view is called _twice_, and I don't know why!?
But I realize that [self window] is nil at the first call, so I can ignore
the first call by checking this. But is this the default behaviour and is it
documented somewhere?

awakeFromNib on the owner is only called once - after these two awakeFromNib
calls on the custom view.

Regards,
Mani
_______________________________________________
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.
_______________________________________________
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: Double call of awakeFromNib on custom view
      • From: Manfred Lippert <email@hidden>
References: 
 >Double call of awakeFromNib on custom view (From: Manfred Lippert <email@hidden>)

  • Prev by Date: Option key state
  • Next by Date: Re: Option key state
  • Previous by thread: Double call of awakeFromNib on custom view
  • Next by thread: Re: Double call of awakeFromNib on custom view
  • Index(es):
    • Date
    • Thread