[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Main.sc and stand-alone application
On Fri, Dec 26, 2008 at 8:31 AM, James Harkins <jamshark70@xxxxxxxxx> wrote:
> Beyond that, locale awareness would be nice but I have no idea how to do it.
> Maybe there is an alternative to itemWithTitle here? Or the obj-c layer
> might have access to the system locale.
> if (strcmp(parentSymbol->name, "Help")==0) {
> parentMenu = [[[NSApp mainMenu] itemWithTitle:@"Help"] submenu];
> }
*slaps forehead* Of course! There is an English nib and a Japanese nib
but no others, so probably only Japanese users would ever see this
problem. (IIUC, users under locales other than English or Japanese
would see English menus.)
Anyway, someone might add a French or German or Spanish nib someday...
there must be a way somewhere to identify a menu other than by its
title.
hjh
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/