Re: custom view subclass won't connect to custom controller class
Re: custom view subclass won't connect to custom controller class
- Subject: Re: custom view subclass won't connect to custom controller class
- From: otherguy <email@hidden>
- Date: Sat, 28 Feb 2004 18:25:14 -0700
On Feb 28, 2004, at 6:15 PM, mmalcolm crawford wrote:
On Feb 28, 2004, at 5:00 PM, otherguy wrote:
However, even though I've defined an outlet IBOutlet (id) dataSource
in the custom view, and connected that outlet to the controller, when
I log the value of dataSource during initWithFrame: for the custom
view, I get (null).
The connection isn't available until awakeFromNib:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
LoadingResources/Concepts/NibFileLoaded.html>
I knew that - I just completely spaced it for some reason - and I was
wondering as I was writing the e-mail how it could be guaranteed that
all the nib objects were valid before it tried to do things with them.
Thank you!
-Cameron Wilhelm
email@hidden
_______________________________________________
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.