Re: Bindings & ivars
Re: Bindings & ivars
- Subject: Re: Bindings & ivars
- From: Kevin Cathey <email@hidden>
- Date: Mon, 5 Apr 2010 13:00:23 -0700
Chuck,
By "bindings", do you mean "Cocoa Bindings" or a standard IBOutlet?
If you mean "Cocoa Bindings" using the Bindings Inspector, then your control will only be accessible from code if you have made a standard outlet connection with it. Different types of connections (outlets, actions, bindings, etc) are separate entities. Having one does not mean the others are present. But it is certainly common to have multiple types of connections active for a given object (outlet to a button, action from the button, and binding the button's enabled property, for example).
Kevin
On 5 Apr 2010, at 11:53, Charles Burnstagger wrote:
> Why, after I have connected a control in my nib. window using bindings can I no longer access it from code?
>
> After connecting a checkbox control using bindings, when my window controller loads, that control's ivar shows up as nil.
>
> Thanks,
>
> Chuck
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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