• 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
Observed behaviour - Is this expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Observed behaviour - Is this expected


  • Subject: Observed behaviour - Is this expected
  • From: David Blanton <email@hidden>
  • Date: Mon, 25 Jan 2010 20:43:29 -0700

Class A is a subclass of NSView
Class B is a subclass of Class A

Class A and Class B are in a NIB.

Class A as an Object - the blue cube
Class B as a view in a window.

When the program runs:

Class A's init method is called
Class B's awakeFromNib is called
Class A's awakeFromNib is called

NOTE that Class B's init method is not called

My problem is I want to reference outlets defined in Class A in Class B awakeFromNib but they are nil at Class B awakeFromNib time.


I was under the impression that at awakeFromNib time all outlets in all NIB objects are wired up.


So what do I not understand?

-db

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Observed behaviour - Is this expected
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: NSTabView
  • Next by Date: Re: Launch process as root from cocoa app
  • Previous by thread: Re: NSTabView
  • Next by thread: Re: Observed behaviour - Is this expected
  • Index(es):
    • Date
    • Thread