Re: NSToolbarItem view set to NSButton view, but not showing...
Re: NSToolbarItem view set to NSButton view, but not showing...
- Subject: Re: NSToolbarItem view set to NSButton view, but not showing...
- From: Andy Lee <email@hidden>
- Date: Wed, 23 Apr 2014 19:59:42 -0400
On Apr 23, 2014, at 6:36 PM, Jerry Krinock <email@hidden> wrote:
>
> On 2014 Apr 23, at 15:13, Peters, Brandon <email@hidden> wrote:
>
>> call [toolbaritem setView:view] and pass in the NSButton.
>
> Try some bonehead debugging with NSLog(). Verify that toolbaritem is your target item at that point, in particular, that it is not nil.
Two more things you can easily check:
* [NSImage imageNamed:imageName] is not returning nil.
* What is your button's imagePosition? If it's NSNoImage that might explain it.
--Andy
_______________________________________________
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