Permalink
Browse files

Make NSWindow+ULIZoomEffect and UKBorderlessWindow build against 10.1…

…2 SDK.
  • Loading branch information...
1 parent 84f8969 commit 394fea344f6c86d62ecb33f116101b6c65a6b734 @uliwitness committed Jun 18, 2016
Showing with 3 additions and 3 deletions.
  1. +2 −2 NSWindow+ULIZoomEffect.m
  2. +1 −1 UKBorderlessWindow.m
View
4 NSWindow+ULIZoomEffect.m
@@ -86,7 +86,7 @@ @implementation ULIQuicklyAnimatingWindow
@synthesize animationResizeTime = mAnimationResizeTime;
--(id) initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag screen:(NSScreen *)screen
+-(id) initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag screen:(NSScreen *)screen
{
if(( self = [super initWithContentRect:contentRect styleMask:aStyle backing:bufferingType defer:flag screen: screen] ))
{
@@ -97,7 +97,7 @@ -(id) initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backi
}
--(id) initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
+-(id) initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
{
if(( self = [super initWithContentRect:contentRect styleMask:aStyle backing:bufferingType defer:flag] ))
{
View
2 UKBorderlessWindow.m
@@ -32,7 +32,7 @@
@implementation UKBorderlessWindow
// Designated Initializer:
--(id) initWithContentRect: (NSRect)box styleMask: (NSUInteger)sty backing: (NSBackingStoreType)bs defer: (BOOL)def
+-(id) initWithContentRect: (NSRect)box styleMask: (NSWindowStyleMask)sty backing: (NSBackingStoreType)bs defer: (BOOL)def
{
// Remove all "border" attributes. We don't touch the other attributes so we can still have this
// work on non-activating panels (NSNonactivatingPanelMask is a style, too).

0 comments on commit 394fea3

Please sign in to comment.