Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (35 sloc) 1.311 kb
76d2a5b @mstroeck
mstroeck authored
1 //
2 // SquareWindow.m
3 // Vienna
4 //
5 // Created by Steve on 10/14/05.
6 // Copyright (c) 2004-2005 Steve Palmer. All rights reserved.
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 // http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // Unless required by applicable law or agreed to in writing, software
15 // distributed under the License is distributed on an "AS IS" BASIS,
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 // See the License for the specific language governing permissions and
18 // limitations under the License.
19 //
20 #import "SquareWindow.h"
21
22 @implementation SquareWindow
23
24 /* initWithContentRect
25 * Subclass the designated initialiser for NSWindow to set the square bottom edge style using the
26 * undocumented setBottomCornerRounded function.
27 */
87178c0 64bit & Lion Full Screen support
Salvatore Ansani authored
28 -(id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
76d2a5b @mstroeck
mstroeck authored
29 {
30 if ((self = [super initWithContentRect:contentRect styleMask:styleMask backing:backingType defer:flag]) != nil)
31 {
32 if ([self respondsToSelector:@selector(setBottomCornerRounded:)])
33 [self setBottomCornerRounded:NO];
34 }
35 return self;
36 }
37 @end
Something went wrong with that request. Please try again.