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 (from parent 1:
b2f5956
)
Fixed the shuffle and loop methods.
author
Kent Sutherland
<ksuther@ithinksw.com>
Tue, 5 Apr 2005 01:38:10 +0000
(
01:38
+0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Tue, 5 Apr 2005 01:38:10 +0000
(
01:38
+0000)
iTunesRemote.m
patch
|
blob
|
history
diff --git
a/iTunesRemote.m
b/iTunesRemote.m
index
5108701
..
2595861
100755
(executable)
--- a/
iTunesRemote.m
+++ b/
iTunesRemote.m
@@
-631,15
+631,9
@@
- (BOOL)shuffleEnabled
{
ITDebugLog(@"Getting shuffle enabled status.");
- (BOOL)shuffleEnabled
{
ITDebugLog(@"Getting shuffle enabled status.");
- BOOL final;
- int result = (int)[ITSendAEWithString(@"'----':obj { form:'prop', want:type('prop'), seld:type('pShf'), from:obj { form:'prop', want:type('pPla'), seld:type('pEQP'), from:'null'() } }", 'core', 'getd', &savedPSN) int32Value];
- if (result != 0) {
- final = YES;
- } else {
- final = NO;
- }
+ int result = (int)[ITSendAEWithString(@"'----':obj { form:'prop', want:type('prop'), seld:type('pShf'), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:'null'() } }", 'core', 'getd', &savedPSN) int32Value];
ITDebugLog(@"Getting shuffle enabled status done.");
ITDebugLog(@"Getting shuffle enabled status done.");
- return
final
;
+ return
(result != 0)
;
}
- (BOOL)setShuffleEnabled:(BOOL)enabled
}
- (BOOL)setShuffleEnabled:(BOOL)enabled
@@
-654,7
+648,7
@@
{
FourCharCode m00f = 0;
int result = 0;
{
FourCharCode m00f = 0;
int result = 0;
- m00f = (FourCharCode)[ITSendAEWithString(@"'----':obj { form:'prop', want:type('prop'), seld:type('pRpt'), from:obj { form:'prop', want:type('p
Pla'), seld:type('pEQP
'), from:'null'() } }", 'core', 'getd', &savedPSN) int32Value];
+ m00f = (FourCharCode)[ITSendAEWithString(@"'----':obj { form:'prop', want:type('prop'), seld:type('pRpt'), from:obj { form:'prop', want:type('p
rop'), seld:type('pPla
'), from:'null'() } }", 'core', 'getd', &savedPSN) int32Value];
ITDebugLog(@"Getting repeat mode.");
switch (m00f)
{
ITDebugLog(@"Getting repeat mode.");
switch (m00f)
{