Skip navigation.
 
mlRe: Chaging NSStatusItem menus.
FROM : Jeremy
DATE : Mon Feb 25 23:20:24 2008

I.S.,

I use barItem extensively. But after "Quitting iTunes" and leaving it 
be for a while, I clicked it and it did go to the other menu. But it 
wasn't instantaneous and it seems to be stalling after a while. Also, 
how can I set it so that instead of text it is a 16x16 image?

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.

Related mailsAuthorDate
mlChaging NSStatusItem menus. Jeremy Feb 25, 22:24
mlRe: Chaging NSStatusItem menus. I. Savant Feb 25, 22:26
mlRe: Chaging NSStatusItem menus. Jeremy Feb 25, 22:30
mlRe: Chaging NSStatusItem menus. I. Savant Feb 25, 22:43
mlRe: Chaging NSStatusItem menus. August Trometer Feb 25, 22:44
mlRe: Chaging NSStatusItem menus. Jeremy Feb 25, 22:50
mlRe: Chaging NSStatusItem menus. I. Savant Feb 25, 22:58
mlRe: Chaging NSStatusItem menus. Jeremy Feb 25, 23:20
mlRe: Chaging NSStatusItem menus. Jeremy Feb 25, 23:36
mlRe: Chaging NSStatusItem menus. I. Savant Feb 26, 00:38
mlRe: Chaging NSStatusItem menus. I. Savant Feb 26, 00:40