• 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: Binding NSMenuItem 1 to 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding NSMenuItem 1 to 1


  • Subject: Re: Binding NSMenuItem 1 to 1
  • From: Knut Lorenzen <email@hidden>
  • Date: Tue, 21 Aug 2007 17:50:01 +0200
  • Thread-topic: Binding NSMenuItem 1 to 1

Jeff Johnson (email@hidden) schrieb dereinst (am
21.08.2007 1:30 Uhr):

> I believe that you can get the desired effect by setting your enabled
> binding's Multiple Values Placeholder to YES.

(Should be No as communicated by private mail)

> You can also set the No Selection Placeholder to NO.  You probably
> don't need the "@count" keypath; you can probably just use the Value
> Transformer "NSIsNotNil".

Got it working now. Here is the trick:

- Model Key Path must *not* be @count, using an arbitrary Key works
- Value Transformer set to NSIsNotNil
- Multiple Values Placeholder set to No

Thanks Jeff!

Cheers,

Knut




_______________________________________________

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: Binding NSMenuItem 1 to 1
      • From: mmalc crawford <email@hidden>
References: 
 >Re: Binding NSMenuItem 1 to 1 (From: Jeff Johnson <email@hidden>)

  • Prev by Date: Re: How to control text that is allowed in a NSTextField control
  • Next by Date: Re: Binding NSMenuItem 1 to 1
  • Previous by thread: Re: Binding NSMenuItem 1 to 1
  • Next by thread: Re: Binding NSMenuItem 1 to 1
  • Index(es):
    • Date
    • Thread