2009-02-22 19:56:28 +00:00
|
|
|
//
|
|
|
|
// MainWindow.m
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 2/22/09.
|
|
|
|
// Copyright 2009 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "MainWindow.h"
|
|
|
|
|
|
|
|
|
|
|
|
@implementation MainWindow
|
|
|
|
|
2018-06-28 10:59:59 +00:00
|
|
|
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
|
2009-02-22 19:56:28 +00:00
|
|
|
{
|
|
|
|
self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
|
|
|
|
if (self)
|
|
|
|
{
|
|
|
|
[self setExcludedFromWindowsMenu:YES];
|
|
|
|
[self setContentBorderThickness:24.0 forEdge:NSMinYEdge];
|
2013-10-11 01:14:35 +00:00
|
|
|
[self setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
2013-10-11 10:39:57 +00:00
|
|
|
}
|
2009-02-22 19:56:28 +00:00
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)awakeFromNib
|
|
|
|
{
|
2013-10-11 10:39:57 +00:00
|
|
|
if ([self respondsToSelector:@selector(toggleFullScreen:)])
|
|
|
|
{
|
|
|
|
[itemLionSeparator setHidden:NO];
|
|
|
|
[itemLionFullscreenToggle setHidden:NO];
|
|
|
|
}
|
2013-10-13 04:09:54 +00:00
|
|
|
|
|
|
|
[playlistView setNextResponder:self];
|
|
|
|
|
2009-02-22 19:56:28 +00:00
|
|
|
[super awakeFromNib];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|