Permalink
Browse files

minor updates to remove build errors

  • Loading branch information...
1 parent adc52c5 commit ac36fb29acc8f55a2ceaeeb9accd2ec9f68991ea @skurfer skurfer committed Oct 22, 2011
Showing with 9 additions and 7 deletions.
  1. +1 −1 Code/QSiTunesBridge.m
  2. +1 −1 Code/QSiTunesDatabase.m
  3. +6 −4 Code/QSiTunesSource.m
  4. +1 −1 Info.plist
@@ -34,7 +34,7 @@ long QSiTunesCurrentTrackID() {
// Send Track ID Event
OSStatus err = AESend(&trackEvent, &reply, kAEWaitReply, kAENormalPriority, kNoTimeOut, NULL, NULL);
if (err) return 0;
- AEGetParamPtr(&reply, keyDirectObject, typeLongInteger, NULL, &trackID, sizeof(trackID) , NULL);
+ AEGetParamPtr(&reply, keyDirectObject, cLongInteger, NULL, &trackID, sizeof(trackID) , NULL);
AEDisposeDesc(&reply);
return trackID;
}
@@ -49,7 +49,7 @@ - (NSDictionary *)trackInfoForID:(NSString *)theID {
- (NSArray *)trackInfoForIDs:(NSArray *)theIDs {
NSMutableArray *tracks = [NSMutableArray array];
- foreach(theID, theIDs) {
+ for (id theID in theIDs) {
id track = [self trackInfoForID:theID];
if (track) [tracks addObject:track];
}
View
@@ -25,7 +25,7 @@ int iTunesGetCurrentTrack() {
long thisID = 0;
//OSErr err=
AESend(&trackEvent, &reply, kAEWaitReply, kAENormalPriority, 120 , NULL, NULL);
- AEGetParamPtr(&reply, keyDirectObject, typeLongInteger, NULL, &thisID, sizeof(thisID), NULL);
+ AEGetParamPtr(&reply, keyDirectObject, cLongInteger, NULL, &thisID, sizeof(thisID), NULL);
AEDisposeDesc(&reply);
AEDisposeDesc(&trackEvent);
return thisID;
@@ -177,7 +177,7 @@ - (id)resolveProxyObject:(id)proxy {
if ([tracks isKindOfClass:[NSNull class]]) return nil;
tracks = [library trackInfoForIDs:tracks];
NSMutableArray *objects = [NSMutableArray array];
- foreach(track, tracks) {
+ for (NSDictionary *track in tracks) {
[objects addObject:[self trackObjectForInfo:track inPlaylist:nil]];
}
return [QSObject objectByMergingObjects:objects];
@@ -562,7 +562,9 @@ - (NSImage *)imageForTrack:(NSDictionary *)trackDict useNet:(BOOL)useNet {
icon = [[[NSImage alloc] initWithData:data] autorelease];
} else {
- if (VERBOSE) NSLog(@"No Artwork Found");
+#ifdef DEBUG
+ if (VERBOSE) NSLog(@"No Artwork Found");
+#endif
}
if (data) {
@@ -763,7 +765,7 @@ - (NSArray *)childrenForObject:(QSObject *)object {
NSArray *criterion = [object arrayForType:QSiTunesBrowserPboardType];
NSMutableArray *children = [NSMutableArray array];
- foreach(criteria, criterion) {
+ for (NSDictionary *criteria in criterion) {
[children addObjectsFromArray:[self childrenForBrowseCriteria:criteria]];
}
return children;
View
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
- <string>337</string>
+ <string>338</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2004, Blacktree, Inc.</string>
<key>NSPrincipalClass</key>

0 comments on commit ac36fb2

Please sign in to comment.