Re: Checkmark on Jaguar?
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.