git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b47e6e5
)
time remaining works now.
author
Kent Sutherland
<ksuther@ithinksw.com>
Fri, 7 Feb 2003 10:43:20 +0000
(10:43 +0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Fri, 7 Feb 2003 10:43:20 +0000
(10:43 +0000)
iTunesRemote.m
patch
|
blob
|
history
diff --git
a/iTunesRemote.m
b/iTunesRemote.m
index
8886102
..
83045cc
100755
(executable)
--- a/
iTunesRemote.m
+++ b/
iTunesRemote.m
@@
-117,17
+117,16
@@
- (NSString *)currentSongRemaining
{
- (NSString *)currentSongRemaining
{
-
NSString*
duration = [[ITAppleEventCenter sharedCenter]
- sendTwoTierAEWithRequestedKey:@"pDur"
+
long
duration = [[ITAppleEventCenter sharedCenter]
+ sendTwoTierAEWithRequestedKey
ForNumber
:@"pDur"
fromObjectByKey:@"pTrk" eventClass:@"core" eventID:@"getd"
appPSN:[self iTunesPSN]];
fromObjectByKey:@"pTrk" eventClass:@"core" eventID:@"getd"
appPSN:[self iTunesPSN]];
-
NSString*
current = [[ITAppleEventCenter sharedCenter]
- sendAEWithRequestedKey:@"pPos"
+
long
current = [[ITAppleEventCenter sharedCenter]
+ sendAEWithRequestedKey
ForNumber
:@"pPos"
eventClass:@"core" eventID:@"getd"
appPSN:[self iTunesPSN]];
eventClass:@"core" eventID:@"getd"
appPSN:[self iTunesPSN]];
- NSLog(@"%@ %@", duration, current);
- //return [[NSNumber numberWithInt:duration - current] stringValue];
- return nil;
+
+ return [[NSNumber numberWithLong:duration - current] stringValue];
}
- (NSArray *)eqPresets;
}
- (NSArray *)eqPresets;
@@
-153,6
+152,7
@@
{
[[ITAppleEventCenter sharedCenter] sendAEWithEventClass:@"hook" eventID:@"Next"
appPSN:[self iTunesPSN]];
{
[[ITAppleEventCenter sharedCenter] sendAEWithEventClass:@"hook" eventID:@"Next"
appPSN:[self iTunesPSN]];
+
return YES;
}
return YES;
}