• 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: Enabled Binding on Controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Enabled Binding on Controls (From: Seth Willits <email@hidden>)
 >Re: Enabled Binding on Controls (From: Michael Jurewitz <email@hidden>)
 >Re: Enabled Binding on Controls (From: Seth Willits <email@hidden>)
 >Re: Enabled Binding on Controls (From: Brian Ganninger <email@hidden>)
 >Re: Enabled Binding on Controls (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Enabled Binding on Controls
  • Next by Date: Re: Linking against libcrypto.dylib fails at strip
  • Previous by thread: Re: Enabled Binding on Controls
  • Next by thread: Re: Enabled Binding on Controls
  • Index(es):
    • Date
    • Thread