git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plugin API changes
[MenuTunes.git]
/
iTunesRemote.m
diff --git
a/iTunesRemote.m
b/iTunesRemote.m
index
e479c63
..
d50d55d
100755
(executable)
--- a/
iTunesRemote.m
+++ b/
iTunesRemote.m
@@
-43,7
+43,7
@@
return YES;
}
return YES;
}
-- (
BOOL)isAppRunning
+- (
ITMTRemotePlayerRunningStatus)playerRunningStatus
{
NSArray *apps = [[NSWorkspace sharedWorkspace] launchedApplications];
int i;
{
NSArray *apps = [[NSWorkspace sharedWorkspace] launchedApplications];
int i;
@@
-52,10
+52,10
@@
for (i = 0; i < count; i++) {
if ([[[apps objectAtIndex:i] objectForKey:@"NSApplicationName"]
isEqualToString:@"iTunes"]) {
for (i = 0; i < count; i++) {
if ([[[apps objectAtIndex:i] objectForKey:@"NSApplicationName"]
isEqualToString:@"iTunes"]) {
- return
YES
;
+ return
ITMTRemotePlayerRunning
;
}
}
}
}
- return
NO
;
+ return
ITMTRemotePlayerNotRunning
;
}
- (ITMTRemotePlayerState)playerState
}
- (ITMTRemotePlayerState)playerState
@@
-66,15
+66,15
@@
{
default:
case 'kPSS':
{
default:
case 'kPSS':
- return
s
topped;
+ return
ITMTRemotePlayerS
topped;
case 'kPSP':
case 'kPSP':
- return
p
laying;
+ return
ITMTRemotePlayerP
laying;
case 'kPSp':
case 'kPSp':
- return
p
aused;
+ return
ITMTRemotePlayerP
aused;
case 'kPSR':
case 'kPSR':
- return
r
ewinding;
+ return
ITMTRemotePlayerR
ewinding;
case 'kPSF':
case 'kPSF':
- return
f
orwarding;
+ return
ITMTRemotePlayerF
orwarding;
}
return stopped;
}
return stopped;