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 (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 arch...@mail-archive.com

Reply via email to