From 23a57f7876ce7213951d5e0087f61b644458d7c8 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Mon, 30 Mar 2009 15:40:12 -0700 Subject: [PATCH] Fixed a bug that might occur in debug configurations with weird working paths. Thanks to Uli Kusterer for catching it. --- SUWindowController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUWindowController.m b/SUWindowController.m index 8581cd79..c82b3db9 100644 --- a/SUWindowController.m +++ b/SUWindowController.m @@ -15,7 +15,7 @@ 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"]; }