• 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
Solved: Re: Using multiple bindings to enable a button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solved: Re: Using multiple bindings to enable a button


  • Subject: Solved: Re: Using multiple bindings to enable a button
  • From: Steve Mills <email@hidden>
  • Date: Wed, 11 Feb 2015 13:06:20 -0600

Thanks for the mental prodding, guys. I did some sleuthing by added an observer for the array controller's selectedObjects.@count in code so I could watch it as well as the comboStringValue property. When the selection changed and the combobox was empty, I noticed the comboStringValue property was nil, which spurred me to check the Null Placeholder for the comboStringValue binding. It was Unspecified. Changing it to No solved the problem.

This also sparked my understanding of the other binding attributes, like Multiple Values Placeholder and such, resulting in me not needing my special EnableOnlyFor1ItemXformer value transformer on the array controller selectedObjects.@count binding. Duh. I guess when I decided to tackle Core Data, Cocoa bindings, NSTableView, and NSArrayController all at the same time, my brain quickly overflowed. :)

--
Steve Mills
Drummer, Mac geek


_______________________________________________

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


  • Follow-Ups:
    • Re: Solved: Re: Using multiple bindings to enable a button
      • From: Steve Mills <email@hidden>
References: 
 >Using multiple bindings to enable a button (From: Steve Mills <email@hidden>)
 >Re: Using multiple bindings to enable a button (From: Quincey Morris <email@hidden>)
 >Re: Using multiple bindings to enable a button (From: Steve Mills <email@hidden>)
 >Re: Using multiple bindings to enable a button (From: Quincey Morris <email@hidden>)
 >Re: Using multiple bindings to enable a button (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: App crashes on launch when using Developer ID-signed Mac Installer Package
  • Next by Date: Re: ARC dealloc best pratice
  • Previous by thread: Re: Using multiple bindings to enable a button
  • Next by thread: Re: Solved: Re: Using multiple bindings to enable a button
  • Index(es):
    • Date
    • Thread