Altering an existing menu item
Altering an existing menu item
- Subject: Altering an existing menu item
- From: John Lombardo <email@hidden>
- Date: Mon, 18 Aug 2003 17:55:09 +0800
Is there some magic trick I need to do to make changes to a menu item take
effect? I can reference a particular menu item using:
[[[[NSApp mainMenu] itemWithTitle:@"Modules"] submenu]
itemWithTitle:@"Administration"]
And I know this works because I can print it's title using NSLog(). However,
when I use setImage or setTitle, nothing happens. I thought maybe there was
some sort of refresh, reload, or justBloodyDoIt method for NSMenuItem, but I
couldn't find anything.
This isn't a critical issue, but it would be nice to know what is going on.
Cheers,
john
_______________________________________________
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.