Skip to content

Commit

Permalink
Removed the title code because the title view is being covered: close i…
Browse files Browse the repository at this point in the history
  • Loading branch information
kgn committed May 24, 2012
1 parent 772b380 commit 51f25e8
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions INAppStoreWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ - (NSRect)window:(INAppStoreWindow *)window willPositionSheet:(NSWindow *)sheet
@end

@interface INAppStoreWindow ()
@property (INAppStoreWindowCopy) NSString *windowMenuTitle;
- (void)_doInitialWindowSetup;
- (void)_createTitlebarView;
- (void)_setupTrafficLightsTrackingArea;
Expand Down Expand Up @@ -253,7 +252,6 @@ @implementation INAppStoreWindow{

@synthesize titleBarView = _titleBarView;
@synthesize titleBarHeight = _titleBarHeight;
@synthesize windowMenuTitle = _windowMenuTitle;
@synthesize centerFullScreenButton = _centerFullScreenButton;
@synthesize centerTrafficLightButtons = _centerTrafficLightButtons;
@synthesize hideTitleBarInFullScreen = _hideTitleBarInFullScreen;
Expand Down Expand Up @@ -291,41 +289,13 @@ - (void)dealloc
#if !__has_feature(objc_arc)
[_delegateProxy release];
[_titleBarView release];
[_windowMenuTitle release];
[super dealloc];
#endif
}

#pragma mark -
#pragma mark NSWindow Overrides

// Disable window titles

- (NSString*)title
{
return @"";
}

- (void)setTitle:(NSString*)title
{
self.windowMenuTitle = title;
if ( ![self isExcludedFromWindowsMenu] )
[NSApp changeWindowsItem:self title:self.windowMenuTitle filename:NO];
}

- (void)setRepresentedURL:(NSURL *)url
{
// do nothing, don't want to show document icon in menu bar
}

- (void)makeKeyAndOrderFront:(id)sender
{
[super makeKeyAndOrderFront:sender];
if (![self isExcludedFromWindowsMenu]) {
[NSApp addWindowsItem:self title:self.windowMenuTitle filename:NO];
}
}

- (void)becomeKeyWindow
{
[super becomeKeyWindow];
Expand All @@ -350,20 +320,6 @@ - (void)resignMainWindow
[_titleBarView setNeedsDisplay:YES];
}

- (void)orderFront:(id)sender
{
[super orderFront:sender];
if (![self isExcludedFromWindowsMenu]) {
[NSApp addWindowsItem:self title:self.windowMenuTitle filename:NO];
}
}

- (void)orderOut:(id)sender
{
[super orderOut:sender];
[NSApp removeWindowsItem:self];
}

#pragma mark -
#pragma mark Accessors

Expand Down

0 comments on commit 51f25e8

Please sign in to comment.