Re: Enabled Binding on Controls
Re: Enabled Binding on Controls
- Subject: Re: Enabled Binding on Controls
- From: Brian Ganninger <email@hidden>
- Date: Sat, 10 Feb 2007 17:31:12 -0600
I'm not on 100% solid ground making this statement, so I'm expecting
someone wiser to correct me if so, but as I noted I think this is
because -(id)selection's mechanism, as documented, returns a proxy
object that is used by bindings to resolve as needed. Since the proxy
object always exists you will never hit a nil case.
- brian 'bgannin' ganninger
On Feb 10, 2007, at 5:21 PM, Seth Willits wrote:
On Feb 10, 2007, at 2:42 PM, Brian Ganninger wrote:
This may just be a stab in the dark but given that -(id)selection
typically returns a placeholder object wouldn't this negate the
NSIsNotNil check? Personally I've used selectedObjects' count as
my enabling binding to avoid this.
Hmm. This works, and that method makes sense, but I'm still a bit
fuzzy on why selection doesn't work.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40mac.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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