Revision: 7200
http://skim-app.svn.sourceforge.net/skim-app/?rev=7200&view=rev
Author: hofman
Date: 2011-04-05 11:07:07 +0000 (Tue, 05 Apr 2011)
Log Message:
-----------
refactor init, separate assignment from check of self
Modified Paths:
--------------
trunk/SKFullScreenWindow.m
Modified: trunk/SKFullScreenWindow.m
===================================================================
--- trunk/SKFullScreenWindow.m 2011-04-05 11:06:16 UTC (rev 7199)
+++ trunk/SKFullScreenWindow.m 2011-04-05 11:07:07 UTC (rev 7200)
@@ -48,7 +48,8 @@
- (id)initWithScreen:(NSScreen *)screen backgroundColor:(NSColor
*)backgroundColor level:(NSInteger)level {
NSRect screenFrame = [(screen ?: [NSScreen mainScreen]) frame];
- if (self = [self initWithContentRect:screenFrame
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) {
+ self = [self initWithContentRect:screenFrame
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];
+ if (self) {
[self setBackgroundColor:backgroundColor];
[self setLevel:level];
[self setReleasedWhenClosed:NO];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit