• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Validate NSToolbarPrintItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Validate NSToolbarPrintItem (From: Knut Lorenzen <email@hidden>)

  • Prev by Date: iPhone developer training
  • Next by Date: Question about Apple's updated Sketch-112 program
  • Previous by thread: Validate NSToolbarPrintItem
  • Next by thread: NSString Class Instance Variables
  • Index(es):
    • Date
    • Thread