Hi,
I have a question regarding changing the color of a menu item after it is selected. This is my code:
in init:
MenuItem *glob = [MenuItemFont itemFromString:@"Global"
target:self
selector:@selector(global:)];
Menu *menu = [Menu menuWithItems:loc, fr, glob, mn, mail, nil];
globalItem = [glob retain];
(I have left out some code that sets up the other menu items)
Then in the "global" method:
[globalItem setRGB:200 :0 :0];
This changed the color of the menu item global to red. Works fine but it gives a warning. I do this quite a few times and so I have a whole list of warnings that I would like to get rid of. Warning is:
"MenuItem may not respond to setRGB" even though it does
Anyone any suggestions how to avoid the warnings?
Thanks!