git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Making prefs work. Not sure if hotkeys are saving and updating, though
[MenuTunes.git]
/
OldMainController.m
diff --git
a/OldMainController.m
b/OldMainController.m
index
cf1b1e7
..
27ca9d1
100755
(executable)
--- a/
OldMainController.m
+++ b/
OldMainController.m
@@
-133,9
+133,7
@@
{
if (!note || [[[note userInfo] objectForKey:@"NSApplicationName"] isEqualToString:[currentRemote playerFullName]]) {
[NSThread detachNewThreadSelector:@selector(startTimerInNewThread) toTarget:self withObject:nil];
{
if (!note || [[[note userInfo] objectForKey:@"NSApplicationName"] isEqualToString:[currentRemote playerFullName]]) {
[NSThread detachNewThreadSelector:@selector(startTimerInNewThread) toTarget:self withObject:nil];
-
[self rebuildMenu];
[self rebuildMenu];
- [statusItem setMenu:menu];
[self setupHotKeys];
isAppRunning = ITMTRemotePlayerRunning;
return;
[self setupHotKeys];
isAppRunning = ITMTRemotePlayerRunning;
return;
@@
-197,10
+195,6
@@
[menu autorelease];
menu = [[NSMenu alloc] initWithTitle:@""];
[menu autorelease];
menu = [[NSMenu alloc] initWithTitle:@""];
- /*while ([menu numberOfItems] > 0) {
- [menu removeItemAtIndex:0];
- }*/
-
playPauseItem = nil;
lastSongIdentifier = @"0-0";
playPauseItem = nil;
lastSongIdentifier = @"0-0";
@@
-263,6
+257,10
@@
[menu addItemWithTitle:@"Rewind"
action:@selector(rewind:)
keyEquivalent:@""];
[menu addItemWithTitle:@"Rewind"
action:@selector(rewind:)
keyEquivalent:@""];
+ } else if ([item isEqualToString:@"Show Player"]) {
+ [menu addItemWithTitle:[NSString stringWithFormat:@"Show %@", [currentRemote playerSimpleName]]
+ action:@selector(showPlayer:)
+ keyEquivalent:@""];
} else if ([item isEqualToString:@"Upcoming Songs"]) {
upcomingSongsItem = [menu addItemWithTitle:@"Upcoming Songs"
action:nil
} else if ([item isEqualToString:@"Upcoming Songs"]) {
upcomingSongsItem = [menu addItemWithTitle:@"Upcoming Songs"
action:nil
@@
-746,12
+744,16
@@
}
}
}
}
- [statusWindow setText:stringToShow];
+ //
+ //SHOW THE STATUS WINDOW HERE WITH STRING stringToShow
+ //
+
+ /*[statusWindow setText:stringToShow];
[NSTimer scheduledTimerWithTimeInterval:3.0
target:self
selector:@selector(fadeAndCloseStatusWindow)
userInfo:nil
[NSTimer scheduledTimerWithTimeInterval:3.0
target:self
selector:@selector(fadeAndCloseStatusWindow)
userInfo:nil
- repeats:NO];
+ repeats:NO];
*/
}
}
}
}
@@
-767,7
+769,6
@@
int i;
NSString *songs = @"";
int i;
NSString *songs = @"";
- statusWindow = [ITTransientStatusWindow sharedWindow];
for (i = curTrack + 1; i <= curTrack + numSongsInAdvance; i++) {
if (i <= numSongs) {
NSString *curSong = [currentRemote songTitleAtIndex:i];
for (i = curTrack + 1; i <= curTrack + numSongsInAdvance; i++) {
if (i <= numSongs) {
NSString *curSong = [currentRemote songTitleAtIndex:i];
@@
-775,12
+776,17
@@
songs = [songs stringByAppendingString:@"\n"];
}
}
songs = [songs stringByAppendingString:@"\n"];
}
}
- [statusWindow setText:songs];
+
+ //
+ //SHOW STATUS WINDOW HERE WITH STRING songs
+ //
+
+ /*[statusWindow setText:songs];
[NSTimer scheduledTimerWithTimeInterval:3.0
target:self
selector:@selector(fadeAndCloseStatusWindow)
userInfo:nil
[NSTimer scheduledTimerWithTimeInterval:3.0
target:self
selector:@selector(fadeAndCloseStatusWindow)
userInfo:nil
- repeats:NO];
+ repeats:NO];
*/
}
}
}
}
}
}