mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-08 08:00:34 +00:00
Moved theWindow to an ivar so other methods can reference it.
This commit is contained in:
1 parent
20a6042f66
commit
357b68e676
1 file changed
+6
-3
@@ -36,14 +36,17 @@ var BKLearnMoreToolbarItemIdentifier = @"BKLearnMoreToolbarItemId
|
||||
|
||||
CPCollectionView _themesCollectionView;
|
||||
CPCollectionView _themedObjectsCollectionView;
|
||||
|
||||
CPWindow theWindow;
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
||||
{
|
||||
_themeDescriptorClasses = [BKThemeDescriptor allThemeDescriptorClasses];
|
||||
|
||||
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
|
||||
toolbar = [[CPToolbar alloc] initWithIdentifier:@"Toolbar"];
|
||||
theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask];
|
||||
|
||||
var toolbar = [[CPToolbar alloc] initWithIdentifier:@"Toolbar"];
|
||||
|
||||
[toolbar setDelegate:self];
|
||||
[theWindow setToolbar:toolbar];
|
||||
@@ -118,7 +121,7 @@ var BKLearnMoreToolbarItemIdentifier = @"BKLearnMoreToolbarItemId
|
||||
|
||||
[_themesCollectionView setSelectionIndexes:[CPIndexSet indexSetWithIndex:0]];
|
||||
|
||||
[theWindow setFullBridge:YES];
|
||||
[theWindow setFullPlatformWindow:YES];
|
||||
[theWindow makeKeyAndOrderFront:self];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user