Re: No indentation when displaying an icon in an NSMenuItem
Re: No indentation when displaying an icon in an NSMenuItem
- Subject: Re: No indentation when displaying an icon in an NSMenuItem
- From: Fritz Anderson <email@hidden>
- Date: Wed, 07 Mar 2012 15:03:37 -0600
On 6 Mar 2012, at 7:21 PM, Prime Coderama wrote:
> An example of what I am trying to achieve can be seen in the Wireless status bar menu where the tickbox is displayed against the current WiFi your connected to e.g. http://cl.ly/2T362b2I0f1G1O3b3G3z
The check mark is not an icon, but a part of how menu items are drawn by default. You set a mark by calling [menuItem setState: NSOnState], and not setImage:. I'd expect that if you did set an image, it would be indented enough to allow space for a check mark. Compare to the Safari Bookmarks menu.
Maybe you could post a picture of how your menu looks, so we can see if the appearance really is off.
— F
_______________________________________________
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