Permalink
Browse files

Enum with fixed underlying type

Modern Objective-C: should enable better code completion and stronger
type checking.
  • Loading branch information...
1 parent 4461338 commit 6fd2f55ff3f17aada434814364447c5c91806e7a @epreston committed Aug 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 PSTreeGraphView/PSBaseTreeGraphView.h
@@ -17,15 +17,15 @@
/// A TreeGraph's nodes may be connected by either "direct" or "orthogonal" lines.
-typedef enum {
+typedef enum PSTreeGraphConnectingLineStyle : NSUInteger {
PSTreeGraphConnectingLineStyleDirect = 0,
PSTreeGraphConnectingLineStyleOrthogonal = 1,
} PSTreeGraphConnectingLineStyle;
/// A TreeGraph's orientation may be either "horizontal" or "vertical".
-typedef enum {
+typedef enum PSTreeGraphOrientationStyle : NSUInteger {
PSTreeGraphOrientationStyleHorizontal = 0,
PSTreeGraphOrientationStyleVertical = 1,
} PSTreeGraphOrientationStyle;

0 comments on commit 6fd2f55

Please sign in to comment.