Browse files

Fixed a bug that might occur in debug configurations with weird worki…

…ng paths. Thanks to Uli Kusterer for catching it.
  • Loading branch information...
1 parent 05b75aa commit 23a57f7876ce7213951d5e0087f61b644458d7c8 @andymatuschak andymatuschak committed Mar 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 SUWindowController.m
View
2 SUWindowController.m
@@ -15,7 +15,7 @@ - (id)initWithHost:(SUHost *)host windowNibName:(NSString *)nibName
NSString *path = [[NSBundle bundleForClass:[self class]] pathForResource:nibName ofType:@"nib"];
if (path == nil) // Slight hack to resolve issues with running Sparkle in debug configurations.
{
- NSString *frameworkPath = [[host sharedFrameworksPath] stringByAppendingPathComponent:@"Sparkle.framework"];
+ NSString *frameworkPath = [[[host bundle] sharedFrameworksPath] stringByAppendingPathComponent:@"Sparkle.framework"];
NSBundle *framework = [NSBundle bundleWithPath:frameworkPath];
path = [framework pathForResource:nibName ofType:@"nib"];
}

0 comments on commit 23a57f7

Please sign in to comment.