Re: The current keyboard icon?
Re: The current keyboard icon?
- Subject: Re: The current keyboard icon?
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 4 May 2004 12:31:07 -0600
On May 4, 2004, at 11:57 AM, Ondra Cada wrote:
happens anybody to know how to obtain the icon of the currently
selected keybaord?
There's no easy way of doing this. You can get the current keyboard
layout by using Carbon's keyboard layout services, but getting the
icons is much more difficult. As of right now, keyboard icons are
stored in two different places:
1. /System/Library/Keyboard Layouts/Unicode.bundle/Contents/Resources
inside "icns" files
2.
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc inside "kcns"
resources
The icons in #1 aren't difficult to obtain, but the icons in #2 are a
completely different story. They seem to be stored in some variant of
the icns format, but I wasn't able to get them to appear correctly...
I'm also not sure how to map keyboard layouts to their icons.
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
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.