• 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: Manfred Lippert <email@hidden>
  • Date: Mon, 11 Feb 2002 20:16:07 +0100

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

Nope.
It is an about box. It has only one of this custom view in its window. The
about box or the custom view is not used or referenced at any other place
(actually I could not see anything like that).

If I run it in the debugger I can see the following calls:

- [NSBundle loadNibNamed ...] call
- CustomView: awakeFromNib (with [self window] == nil)
- CustomView. awakeFromNib (with [self window] != nil)
- AboutBox:awakeFromNib
- [NSBundle loadNibNamed ...] returns

It is OK when I know that and do a check for window == nil, but I can not
find anything in the documentation about this behaviour.
I don't see where I could make an error. (But who knows ... ;-))

Bye,
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.

References: 
 >Re: Double call of awakeFromNib on custom view (From: Vince DeMarco <email@hidden>)

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