Re: Non clickable NSToolbarItem label
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