Re: core data and IB outlet binding
Re: core data and IB outlet binding
- Subject: Re: core data and IB outlet binding
- From: Keary Suska <email@hidden>
- Date: Wed, 09 Apr 2008 09:49:05 -0600
- Thread-topic: core data and IB outlet binding
on 4/9/08 9:14 AM, email@hidden purportedly said:
> On Apr 9, 2008, at 17:06, Keary Suska wrote:
>> on 4/9/08 4:31 AM, email@hidden purportedly said:
>>
>>> When the button is pressed it turns out that filterExpression (and
>>> therefor also the stringValue of it) is nil.
>>>
>>> I assume somehow I could probably also get the value from the
>>> NSArrayController ...but
>>>
>>> a) I am not sure how to get hold of the instance from within the
>>> FilterViewItem
>>>
>>> b) I would need to get access to the NSTextField at some stage anyway
>>>
>>> What am I missing here?
>>
>> Is you outlet actually connected in IB? If it is properly connected,
>> it
>> shouldn't be nil.
>
> Yeah ...that's connected. Which is why I am so surprised it's nil.
Well, AFAIK it's not possible for an outlet to be nil, as long as the object
with the outlet is instantiated in the nib or is the file's owner.
Otherwise, the outlet will never be set.
Have you put an NSLog in the object's awakeFromNib to make sure your object
is involved in the nib and the outlet is being set?
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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