Revision: 6654
http://skim-app.svn.sourceforge.net/skim-app/?rev=6654&view=rev
Author: hofman
Date: 2010-07-26 12:16:58 +0000 (Mon, 26 Jul 2010)
Log Message:
-----------
no need to pass screen in initializer for window subclasses
Modified Paths:
--------------
trunk/SKAnimatedBorderlessWindow.h
trunk/SKAnimatedBorderlessWindow.m
trunk/SKNavigationWindow.m
Modified: trunk/SKAnimatedBorderlessWindow.h
===================================================================
--- trunk/SKAnimatedBorderlessWindow.h 2010-07-26 11:00:41 UTC (rev 6653)
+++ trunk/SKAnimatedBorderlessWindow.h 2010-07-26 12:16:58 UTC (rev 6654)
@@ -41,7 +41,6 @@
@interface SKAnimatedBorderlessWindow : NSWindow
-- (id)initWithContentRect:(NSRect)contentRect screen:(NSScreen *)screen;
- (id)initWithContentRect:(NSRect)contentRect;
- (void)willClose;
Modified: trunk/SKAnimatedBorderlessWindow.m
===================================================================
--- trunk/SKAnimatedBorderlessWindow.m 2010-07-26 11:00:41 UTC (rev 6653)
+++ trunk/SKAnimatedBorderlessWindow.m 2010-07-26 12:16:58 UTC (rev 6654)
@@ -49,7 +49,7 @@
@dynamic defaultAlphaValue, fadeInDuration, fadeOutDuration,
autoHideTimeInterval;
-- (id)initWithContentRect:(NSRect)contentRect screen:(NSScreen *)screen {
+- (id)initWithContentRect:(NSRect)contentRect {
if (self = [super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) {
[self setBackgroundColor:[NSColor clearColor]];
[self setOpaque:NO];
@@ -59,10 +59,6 @@
return self;
}
-- (id)initWithContentRect:(NSRect)contentRect {
- return [self initWithContentRect:contentRect screen:nil];
-}
-
- (void)dealloc {
[self stopAnimation];
[super dealloc];
Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m 2010-07-26 11:00:41 UTC (rev 6653)
+++ trunk/SKNavigationWindow.m 2010-07-26 12:16:58 UTC (rev 6654)
@@ -70,7 +70,7 @@
if (hasSlider)
width += SLIDER_WIDTH;
NSRect contentRect = NSMakeRect(NSMidX([screen frame]) - 0.5 * width,
NSMinY([screen frame]) + WINDOW_OFFSET, width, BUTTON_HEIGHT + 2 *
BUTTON_MARGIN);
- if (self = [super initWithContentRect:contentRect screen:screen]) {
+ if (self = [super initWithContentRect:contentRect]) {
[self setDisplaysWhenScreenProfileChanges:YES];
[self setLevel:[[pdfView window] level]];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit