Skip to content

Commit

Permalink
So in love with -firstObject until I have to build on 10.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
chockenberry committed Nov 19, 2013
1 parent 63bf348 commit 35c6d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Provisioning/GeneratePreviewForURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"deviceIdentifier = %@", device];
NSArray *matchingDevices = [savedDevices filteredArrayUsingPredicate:predicate];
if ([matchingDevices count] > 0) {
id matchingDevice = [matchingDevices firstObject];
id matchingDevice = [matchingDevices objectAtIndex:0];
if ([matchingDevice isKindOfClass:[NSDictionary class]]) {
/* the matchingDevice dictionary looks like this:
{
Expand Down

0 comments on commit 35c6d27

Please sign in to comment.