• 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: does NSMenuItem setMixedStateImage or setOnStateImage work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does NSMenuItem setMixedStateImage or setOnStateImage work?


  • Subject: Re: does NSMenuItem setMixedStateImage or setOnStateImage work?
  • From: Ken Victor <email@hidden>
  • Date: Thu, 19 Jan 2006 09:12:58 -0800

At 11:43 PM -0800 1/18/06, Kurt Bigler wrote:
on 9/13/05 1:06 PM, Ken Victor <email@hidden> wrote:

 does NSMenuItem setMixedStateImage or setOnStateImage work? i know i
 have a valid NSImage that i pass to these commans as the same image
 works fine if passed to NSMenuItem setImage (which is how i've worked
 around this for the time being). however, if i set the on or mixed
 state image and then set the state, i still get the check mark or the
 dash instead of my image.

 i'm simply doing:
 [myMenuItem setMixedStateImage: myImage];
 [myMenuItem setState: NSMixedState];

am i doing something wrong? or is this a known bug?

Hi,

Did you resolve this? I did not see any replies.

i have "resolved" this as mentioned above, ie, i use setImage (which as you mention actually places the image in the "wrong" location). and i haven't seen/gotten any replies.



Meanwhile I am having similar problems and I see there have been posts about related problems as far back as 2002.

So far I haven't found any responses from anyone at Apple.  It would be
great if someone at Apple could put this question to rest.

agreed!


Incidentally the setImage method works, but this does not put the image in the "check mark" column, but rather in a column to the right of it, inset into what is normally the text area. Trying setImage was useful in terms of confirming that there was nothing wrong with the NSImage being passed to one of the setXXXImage methods.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: does NSMenuItem setMixedStateImage or setOnStateImage work? (From: Kurt Bigler <email@hidden>)

  • Prev by Date: Re: NumberFormatters and sci notation
  • Next by Date: Re: Returning an executable in a framework
  • Previous by thread: Re: does NSMenuItem setMixedStateImage or setOnStateImage work?
  • Next by thread: Storing and Retrieving Strings
  • Index(es):
    • Date
    • Thread