Revision: 5794
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5794&view=rev
Author:   hofman
Date:     2009-09-23 12:03:08 +0000 (Wed, 23 Sep 2009)

Log Message:
-----------
typedef for enum

Modified Paths:
--------------
    trunk/SKRemoteStateWindow.h
    trunk/SKRemoteStateWindow.m

Modified: trunk/SKRemoteStateWindow.h
===================================================================
--- trunk/SKRemoteStateWindow.h 2009-09-23 10:56:28 UTC (rev 5793)
+++ trunk/SKRemoteStateWindow.h 2009-09-23 12:03:08 UTC (rev 5794)
@@ -43,7 +43,8 @@
     SKRemoteStateResize,
     SKRemoteStateScroll
 };
+typedef NSUInteger SKRemoteState;
 
 @interface SKRemoteStateWindow : SKAnimatedBorderlessWindow
-+ (void)showWithType:(NSInteger)remoteState atPoint:(NSPoint)point;
++ (void)showWithType:(SKRemoteState)remoteState atPoint:(NSPoint)point;
 @end

Modified: trunk/SKRemoteStateWindow.m
===================================================================
--- trunk/SKRemoteStateWindow.m 2009-09-23 10:56:28 UTC (rev 5793)
+++ trunk/SKRemoteStateWindow.m 2009-09-23 12:03:08 UTC (rev 5794)
@@ -45,10 +45,10 @@
 #define WINDOW_SIZE 60.0
 
 @interface SKRemoteStateView : NSView {
-    NSInteger remoteState;
+    SKRemoteState remoteState;
 }
-- (NSInteger)remoteState;
-- (void)setRemoteState:(NSInteger)newRemoteState;
+- (SKRemoteState)remoteState;
+- (void)setRemoteState:(SKRemoteState)newRemoteState;
 @end
 
 
@@ -78,7 +78,7 @@
     return [[NSUserDefaults standardUserDefaults] 
floatForKey:SKAppleRemoteSwitchIndicationTimeoutKey];
 }
 
-- (void)showWithType:(NSInteger)remoteState atPoint:(NSPoint)point {
+- (void)showWithType:(SKRemoteState)remoteState atPoint:(NSPoint)point {
     if ([self autoHideTimeInterval] > 0.0) {
         [self stopAnimation];
         
@@ -89,7 +89,7 @@
     }
 }
 
-+ (void)showWithType:(NSInteger)remoteState atPoint:(NSPoint)point {
++ (void)showWithType:(SKRemoteState)remoteState atPoint:(NSPoint)point {
     [[self sharedRemoteStateWindow] showWithType:remoteState atPoint:point];
 }
 
@@ -99,11 +99,11 @@
 
 @implementation SKRemoteStateView
 
-- (NSInteger)remoteState {
+- (SKRemoteState)remoteState {
     return remoteState;
 }
 
-- (void)setRemoteState:(NSInteger)newRemoteState {
+- (void)setRemoteState:(SKRemoteState)newRemoteState {
     remoteState = newRemoteState;
     [self setNeedsDisplay:YES];
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to