On Fri, May 30, 2008 at 11:43 PM, Rick Mann <[EMAIL PROTECTED]> wrote:
> I'm sure this has been asked before, but a brief Google search didn't turn
> up anything.
>
> I have a button "Print Label". I would like it to say "Print Labels" when
> more than one label is selected in the Tree Controller view. Is it possible
> to do this with Alt. Titles and bindings in IB? Or must I write code?

Wild shot: bind the button title to the array controller's
selectedObjects key. Then, apply a custom NSValueTransformer that
returns the proper title (probably using NSLocalizedString) based on
the count of the objects passed in.
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to