FROM : Mr. Gecko
DATE : Wed May 21 23:11:45 2008
How would I scroll a NSStatusBar I came up with a temporary fix but if
there is a better way please tell me.
- (void)timer:(NSTimer *)t {
if (scroll) {
if ([info length]>5 && lasts != [info length]-4) {
[musicMenuItem setTitle: NSLocalizedString([info
substringWithRange:NSMakeRange(lasts, 5)], @"")];
lasts++;
} else {
lasts = 0;
}
}
}
DATE : Wed May 21 23:11:45 2008
How would I scroll a NSStatusBar I came up with a temporary fix but if
there is a better way please tell me.
- (void)timer:(NSTimer *)t {
if (scroll) {
if ([info length]>5 && lasts != [info length]-4) {
[musicMenuItem setTitle: NSLocalizedString([info
substringWithRange:NSMakeRange(lasts, 5)], @"")];
lasts++;
} else {
lasts = 0;
}
}
}
| Related mails | Author | Date |
|---|---|---|
| Mr. Gecko | May 21, 23:11 | |
| Kyle Sluder | May 22, 00:55 |






Cocoa mail archive

