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

Double call of awakeFromNib on custom view


  • Subject: Double call of awakeFromNib on custom view
  • From: Manfred Lippert <email@hidden>
  • Date: Sun, 10 Feb 2002 22:52:59 +0100

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.

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.

  • Follow-Ups:
    • Re: Double call of awakeFromNib on custom view
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: disable a NSTextView
  • Next by Date: Radar Question [OT]
  • Previous by thread: Re: disable a NSTextView
  • Next by thread: Re: Double call of awakeFromNib on custom view
  • Index(es):
    • Date
    • Thread