Re: Chaging NSStatusItem menus.
Re: Chaging NSStatusItem menus.
- Subject: Re: Chaging NSStatusItem menus.
- From: Jeremy <email@hidden>
- Date: Mon, 25 Feb 2008 17:36:48 -0500
Hey,
I think I figured out why my change isn't instantaneous like I was
complaining before. I have a subclassed menuWillOpen: which updates my
data upon open. Maybe I need to rework my code. Is there any if
statement that could get me around this code problem?
Thanks,
Jeremy
"For a long time it puzzled me how something so expensive, so leading
edge, could be so useless, and then it occurred to me that a computer
is a stupid machine with the ability to do incredibly smart things,
while computer programmers are smart people with the ability to do
incredibly stupid things. They are, in short, a perfect match." - Bill
Bryson
On Feb 25, 2008, at 4:58 PM, I. Savant wrote:
- (void)quitItunes:(id)sender
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
[iTunes quit];
iTunesQuit = [[NSMenu alloc] initWithTitle:@""];
qOne = [iTunesQuit addItemWithTitle:@"Start Watching iTunes
Again"
action:@selector(beginWatching:) keyEquivalent:@""];
[barItem setTitle:@"Start iTunes"];
//[barItem setAction:@selector(beginWatching:)];
[barItem setMenu:iTunesQuit];
//[[NSApplication sharedApplication] terminate:self];
This is a little hard to follow without further explanation, but are
you sure barItem is a valid pointer? If it's an IBOutlet, are you sure
it's connected? That's the very first thing that comes to mind. Does
the title change when you tell it to change to "Start Watching iTunes
Again"?
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden