Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Binding NSMenuItem 1 to 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding NSMenuItem 1 to 1



I am binding an NSMenuItem (via NSArrayController) with "Availability" ->
"enabled". Think of "Edit" only if 1 item is selected.

Controller Key is set to "selection"
Model Key Path is set to "@count"

Works fine, but my goal is to enable the NSMenuItem only if 1 (and only 1!)
item is selected in the NSArrayController. NSMenuItem remains enabled if
several items are selected.

I've tried virtually every combination of Key and Path settings that looked
promising to no avail. Someone out there to enlighten me?

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.