• 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
Re: Bindings & ivars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Bindings & ivars (From: Charles Burnstagger <email@hidden>)

  • Prev by Date: Re: Standard controls on top of NSGradients
  • Next by Date: Re: Why doesn't -[NSArrayController selection] et al fire keyPathsForValuesAffectingKey?
  • Previous by thread: Bindings & ivars
  • Next by thread: Re: Bindings & ivars
  • Index(es):
    • Date
    • Thread