How would I go about disabling the Print command for a modal panel? The nil-targetted menu item is currently enabled because the first responder is an NSTextField, which implements the print: selector. But I don't really want users printing out individual NSTextFields. I could subclass NSTextField (and every other NSControl in the window that implements print:) and implement validateMenuItem:, but that seems awkward. Another option would be to set the Print menu item's target to my controller object while the panel is up (and implement validateMenuItem:), and restore it to nil afterwards. Is that the recommended approach, or is there something better?

Thanks,
--
Jim Matthews
Fetch Softworks
http://fetchsoftworks.com
_______________________________________________

Cocoa-dev mailing list ([email protected])

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