Revision: 5069
http://skim-app.svn.sourceforge.net/skim-app/?rev=5069&view=rev
Author: hofman
Date: 2008-12-16 18:08:28 +0000 (Tue, 16 Dec 2008)
Log Message:
-----------
implement designated initializer for custom window classes
Modified Paths:
--------------
trunk/SKAnimatedBorderlessWindow.m
trunk/SKBorderlessImageWindow.m
trunk/SKFullScreenWindow.m
trunk/SKNavigationWindow.m
trunk/SKPDFToolTipWindow.m
trunk/SKRemoteStateWindow.m
trunk/SKSideWindow.m
trunk/SKTransitionController.m
Modified: trunk/SKAnimatedBorderlessWindow.m
===================================================================
--- trunk/SKAnimatedBorderlessWindow.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKAnimatedBorderlessWindow.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -60,6 +60,14 @@
return [self initWithContentRect:contentRect screen:nil];
}
+- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation {
+ return [self initWithContentRect:contentRect screen:nil];
+}
+
+- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation screen:(NSScreen *)screen {
+ return [self initWithContentRect:contentRect screen:screen];
+}
+
- (void)dealloc {
[self stopAnimation];
[super dealloc];
Modified: trunk/SKBorderlessImageWindow.m
===================================================================
--- trunk/SKBorderlessImageWindow.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKBorderlessImageWindow.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -55,6 +55,10 @@
return self;
}
+- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation {
+ return [self initWithContentRect:contentRect image:nil];
+}
+
- (BOOL)canBecomeMainWindow { return NO; }
- (BOOL)canBecomeKeyWindow { return NO; }
Modified: trunk/SKFullScreenWindow.m
===================================================================
--- trunk/SKFullScreenWindow.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKFullScreenWindow.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -55,6 +55,14 @@
return self;
}
+- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation {
+ return [self initWithScreen:nil];
+}
+
+- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation screen:(NSScreen *)screen {
+ return [self initWithScreen:screen];
+}
+
- (void)stopAnimation {
[animation stopAnimation];
[animation release];
Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKNavigationWindow.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -129,6 +129,10 @@
return self;
}
+- (id)initWithContentRect:(NSRect)contentRect screen:(NSScreen *)screen {
+ return [self initWithPDFView:nil];
+}
+
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
[zoomButton release];
Modified: trunk/SKPDFToolTipWindow.m
===================================================================
--- trunk/SKPDFToolTipWindow.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKPDFToolTipWindow.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -106,6 +106,10 @@
return sharedToolTipWindow;
}
+- (id)initWithContentRect:(NSRect)contentRect screen:(NSScreen *)screen {
+ return [self init];
+}
+
- (void)dealloc {
[font release];
[backgroundColor release];
Modified: trunk/SKRemoteStateWindow.m
===================================================================
--- trunk/SKRemoteStateWindow.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKRemoteStateWindow.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -80,6 +80,10 @@
return sharedRemoteStateWindow;
}
+- (id)initWithContentRect:(NSRect)contentRect screen:(NSScreen *)screen {
+ return [self init];
+}
+
- (id)retain { return self; }
- (id)autorelease { return self; }
Modified: trunk/SKSideWindow.m
===================================================================
--- trunk/SKSideWindow.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKSideWindow.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -77,6 +77,10 @@
return self;
}
+- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation {
+ return [self initWithMainController:nil edge:NSMinXEdge];
+}
+
- (BOOL)canBecomeMainWindow { return NO; }
- (BOOL)canBecomeKeyWindow { return YES; }
Modified: trunk/SKTransitionController.m
===================================================================
--- trunk/SKTransitionController.m 2008-12-16 16:00:37 UTC (rev 5068)
+++ trunk/SKTransitionController.m 2008-12-16 18:08:28 UTC (rev 5069)
@@ -615,6 +615,10 @@
return self;
}
+- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation {
+ return [self init];
+}
+
- (BOOL)canBecomeMainWindow { return NO; }
- (BOOL)canBecomeKeyWindow { return NO; }
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit