Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 28 lines (23 sloc) 0.826 kb
6fd1422 Actually added the appropriate files this time.
andym authored
1 //
2 // SUWindowController.m
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 2/13/08.
6 // Copyright 2008 Andy Matuschak. All rights reserved.
7 //
8
9 #import "SUWindowController.h"
22129e3 @andymatuschak Fixes #353896: SUWindowController should #import SUHost
andymatuschak authored
10 #import "SUHost.h"
6fd1422 Actually added the appropriate files this time.
andym authored
11
12 @implementation SUWindowController
13
c42e3a3 @andymatuschak Fixed 251010
andymatuschak authored
14 - (id)initWithHost:(SUHost *)host windowNibName:(NSString *)nibName
6fd1422 Actually added the appropriate files this time.
andym authored
15 {
16 NSString *path = [[NSBundle bundleForClass:[self class]] pathForResource:nibName ofType:@"nib"];
17 if (path == nil) // Slight hack to resolve issues with running Sparkle in debug configurations.
18 {
23a57f7 @andymatuschak Fixed a bug that might occur in debug configurations with weird worki…
andymatuschak authored
19 NSString *frameworkPath = [[[host bundle] sharedFrameworksPath] stringByAppendingPathComponent:@"Sparkle.framework"];
6fd1422 Actually added the appropriate files this time.
andym authored
20 NSBundle *framework = [NSBundle bundleWithPath:frameworkPath];
21 path = [framework pathForResource:nibName ofType:@"nib"];
22 }
d7774c0 performed a code review, specifically:
Sean McBride authored
23 self = [super initWithWindowNibPath:path owner:self];
24 return self;
6fd1422 Actually added the appropriate files this time.
andym authored
25 }
26
27 @end
Something went wrong with that request. Please try again.