• 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: Non clickable NSToolbarItem label
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non clickable NSToolbarItem label


  • Subject: Re: Non clickable NSToolbarItem label
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Mon, 29 Oct 2007 09:32:53 -0700

If the user clicks on the NSToolbarItem icon I get the proper action.
But I cannot get any action when the user clicks on the label of the
NSToolbarItem.

…
   // no matter if I add this
   SEL   act = [itemView action];
   id    tar = [itemView target];
   if(act && tar){
        [item setAction:act];
        [item setTarget:tar];
   }

Is the button targeted at the first responder here? Your setTarget:/ setAction: pair would never be called if that were the case.


-Ben_______________________________________________

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: 
 >Non clickable NSToolbarItem label (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Trying to delete the first char of a string?
  • Next by Date: Re: Core data model configuration & Leopard
  • Previous by thread: Non clickable NSToolbarItem label
  • Next by thread: Re: Non clickable NSToolbarItem label
  • Index(es):
    • Date
    • Thread