FROM : I. Savant
DATE : Mon Feb 25 22:58:25 2008
> - (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.
DATE : Mon Feb 25 22:58:25 2008
> - (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.
| Related mails | Author | Date |
|---|---|---|
| Jeremy | Feb 25, 22:24 | |
| I. Savant | Feb 25, 22:26 | |
| Jeremy | Feb 25, 22:30 | |
| I. Savant | Feb 25, 22:43 | |
| August Trometer | Feb 25, 22:44 | |
| Jeremy | Feb 25, 22:50 | |
| I. Savant | Feb 25, 22:58 | |
| Jeremy | Feb 25, 23:20 | |
| Jeremy | Feb 25, 23:36 | |
| I. Savant | Feb 26, 00:38 | |
| I. Savant | Feb 26, 00:40 |






Cocoa mail archive

