Re: Validate NSToolbarPrintItem
Re: Validate NSToolbarPrintItem
- Subject: Re: Validate NSToolbarPrintItem
- From: Knut Lorenzen <email@hidden>
- Date: Wed, 14 Oct 2009 14:37:22 +0200
Am 13.10.2009 um 21:00 schrieb Knut Lorenzen:
how does one validate a NSToolbarPrintItem that was added in IB 3.2?
To answer my own question (and for the archives):
This looks like a bug in IB's predefined Print Toolbar Item.
Workaround: Simply delete it, add a custom item instead, set its image
name to "NSToolbarPrint" and make sure that "Autovalidates" is
checked. Now set the Target to "First Responder" (or whatever you wish
to print) and the action to "print:" and all is well. It is not
necessary to implement (BOOL)validateToolbarItem:(NSToolbarItem *)
theItem for all this to work.
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