On 26 Dec 2008, at 05:31, James Harkins wrote:
I can't recall: Is there a way of detecting if you're in a standalone?
Nothing obvious. It searches by title in fact because menu order might be unpredictable. It could do it by index, but then that breaks if anyone adds a menu in a class or uses a different nib.
I don't know how to access the localisation stuff. There's also a potential unicode issue here, since I'm not sure you could specify the actual name. Since at the moment there is only English and Japanese, you could search for both I suppose. Another possibility is that the if clause above exits without fail if the Help menu is not found. Not sure if that's a good idea or not. Maybe depends upon whether altering existing menus remains 'private'. S.
|