• 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: No indentation when displaying an icon in an NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No indentation when displaying an icon in an NSMenuItem


  • Subject: Re: No indentation when displaying an icon in an NSMenuItem
  • From: Peter Ammon <email@hidden>
  • Date: Wed, 07 Mar 2012 12:54:33 -0800

The checkmark is the on-state image. Try calling [menuItem setState:NSOnState];

Hope this helps,
-Peter

On Mar 6, 2012, at 5:21 PM, Prime Coderama <email@hidden> wrote:

> I am trying to add an icon to only one NSMenuItem item but it is indenting the icon and text by 1 level.
>
> I tried to set the setIndentationLevel to "0" but that doesn't work.
>
> 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
>
> Any tips are appreciated!
> _______________________________________________
>
> 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


_______________________________________________

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: 
 >No indentation when displaying an icon in an NSMenuItem (From: Prime Coderama <email@hidden>)

  • Prev by Date: Re: No indentation when displaying an icon in an NSMenuItem
  • Next by Date: Re: No indentation when displaying an icon in an NSMenuItem
  • Previous by thread: Re: No indentation when displaying an icon in an NSMenuItem
  • Next by thread: Re: No indentation when displaying an icon in an NSMenuItem
  • Index(es):
    • Date
    • Thread