Skip to content

Commit

Permalink
[CHANGE] 10.4 compatiblity: only use -[NSBundle loadAndReturnError:] …
Browse files Browse the repository at this point in the history
…when it's available.
  • Loading branch information
rentzsch committed May 23, 2009
1 parent a51e80c commit 3674219
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SparkleManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ - (SUUpdater*)_updater {
NSAssert(sparkleFramework, nil);

NSError *error = nil;
BOOL loaded = [sparkleFramework loadAndReturnError:&error];
BOOL loaded;
if ([sparkleFramework respondsToSelector:@selector(loadAndReturnError:)]) {
loaded = [sparkleFramework loadAndReturnError:&error];
} else {
loaded = [sparkleFramework load];
}
if (loaded) {
NSBundle *clickToFlashBundle = [NSBundle bundleWithIdentifier:@"com.github.rentzsch.clicktoflash"];
NSAssert(clickToFlashBundle, nil);
Expand Down

0 comments on commit 3674219

Please sign in to comment.