How can I update my statusItem Title? At the moment I do it with a timer
[NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(myVoid) userInfo:nil repeats:YES];
and the void is:
-(void)myVoid {
statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];
[statusItem setTitle:myString];
}
The content of myString
changes. How can I update the Title? At the moment, when I update it there comes another statusItem and another and another...