Re: IBOutlet not 'sticking' at runtime
Re: IBOutlet not 'sticking' at runtime
- Subject: Re: IBOutlet not 'sticking' at runtime
- From: Cameron Hayne <email@hidden>
- Date: Wed, 7 Sep 2005 13:12:39 -0400
On 7-Sep-05, at 11:28 AM, Adam Raney wrote:
In Interface builder, I have successfully placed the custom object
in my window (placed NSPopUpButton and selected ACRPopUpButton from
it's Custom Class option). I have also connected the target
IBOutlet to a text field on the same window.
The problem I have is, when the my app runs, the target is showing
up as 0x0, as though it is not getting assigned. This has worked on
other custom subclasses (such as my window controller), what could
be causing this issue?
Maybe you are checking the value of 'target' too early before
'awakeFromNib' has run?
Or maybe you have a 'setTarget' method? (Search for "outlet" in this
FAQ: http://www.alastairs-place.net/cocoa/faq.txt)
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden