• 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: Checkmark on Jaguar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checkmark on Jaguar?


  • Subject: Re: Checkmark on Jaguar?
  • From: David Remahl <email@hidden>
  • Date: Mon, 26 Aug 2002 08:21:18 +0200

> On Mon, Aug 26, 2002 at 02:48:12AM +0200, David Remahl wrote:
>> This will get you a copy. Of course there aren't any guarantees that its
>> name will remain the same internally to AppKit, so you may be best off
>> saving a copy in your bundle.
>>
>> [[[NSImage imageNamed:@"NSMenuCheckmark"] TIFFRepresentation]
>> writeToFile:@"/some/target/path.tiff" atomically:NO];
>
> Funny, that's actually not the same image OS X uses in its menus, but
> it looks a lot closer to what I was getting in 10.1. Thanks.

Hmm, you are right...That is very strange, especially since the following -
which does not use any undocumented features - gives the same result:

[dummyMenuItem onStateImage]

But you are right...They are different.

If the image given by the two suggested methods "isn't enough", then perhaps
you can get the real image using Carbon calls...

/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Checkmark on Jaguar? (From: Nicholas Riley <email@hidden>)

  • Prev by Date: Re: [Q] Trouble setting an image in an NSOutlineView
  • Next by Date: Re: Checkmark on Jaguar?
  • Previous by thread: Re: Checkmark on Jaguar?
  • Next by thread: Re: Checkmark on Jaguar?
  • Index(es):
    • Date
    • Thread