> On Apr 5, 2017, at 8:10 AM, Steve Mills <sjmi...@mac.com> wrote: > > On Apr 4, 2017, at 22:09:34, Daryle Walker <dary...@mac.com > <mailto:dary...@mac.com>> wrote: >> >> I have a menu item named like “Remove Item”. But I added support for >> multiple-selection in the table-view. So is there a way to change the menu >> item to “Remove Items” when more than one item is selected. I think there’s >> a “stringdict” format that can handle all sorts of plural rules (some >> locales do more than singular vs. non-singular in English). Can that help >> here? > > Add a validateMenuItem: method to set the title based on the number of items. > > -- > Steve Mills > Drummer, Mac geek
The other thing you can do is to bind the menu item’s “title” binding to a dynamic property, and update that property as appropriate when the number of items changes. Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com