Revision: 4986
http://skim-app.svn.sourceforge.net/skim-app/?rev=4986&view=rev
Author: hofman
Date: 2008-11-23 17:49:17 +0000 (Sun, 23 Nov 2008)
Log Message:
-----------
typedef for match option enum
Modified Paths:
--------------
trunk/SKTypeSelectHelper.h
trunk/SKTypeSelectHelper.m
Modified: trunk/SKTypeSelectHelper.h
===================================================================
--- trunk/SKTypeSelectHelper.h 2008-11-23 16:06:34 UTC (rev 4985)
+++ trunk/SKTypeSelectHelper.h 2008-11-23 17:49:17 UTC (rev 4986)
@@ -44,11 +44,12 @@
SKSubstringMatch,
SKFullStringMatch
};
+typedef int SKTypeSelectMatchOption;
@interface SKTypeSelectHelper : NSObject {
id dataSource;
BOOL cycleResults;
- int matchOption;
+ SKTypeSelectMatchOption matchOption;
BOOL matchesImmediately;
NSArray *searchCache;
@@ -58,9 +59,9 @@
}
+ (id)typeSelectHelper;
-+ (id)typeSelectHelperWithMatchOption:(int)aMatchOption;
++ (id)typeSelectHelperWithMatchOption:(SKTypeSelectMatchOption)aMatchOption;
-- (id)initWithMatchOption:(int)aMatchOption;
+- (id)initWithMatchOption:(SKTypeSelectMatchOption)aMatchOption;
- (id)dataSource;
- (void)setDataSource:(id)anObject;
@@ -71,8 +72,8 @@
- (BOOL)matchesImmediately;
- (void)setMatchesImmediately:(BOOL)newValue;
-- (int)matchOption;
-- (void)setMatchOption:(int)newValue;
+- (SKTypeSelectMatchOption)matchOption;
+- (void)setMatchOption:(SKTypeSelectMatchOption)newValue;
- (NSString *)searchString;
- (void)setSearchString:(NSString *)newSearchString;
Modified: trunk/SKTypeSelectHelper.m
===================================================================
--- trunk/SKTypeSelectHelper.m 2008-11-23 16:06:34 UTC (rev 4985)
+++ trunk/SKTypeSelectHelper.m 2008-11-23 17:49:17 UTC (rev 4986)
@@ -68,11 +68,11 @@
return [[[self alloc] init] autorelease];
}
-+ (id)typeSelectHelperWithMatchOption:(int)aMatchOption {
++ (id)typeSelectHelperWithMatchOption:(SKTypeSelectMatchOption)aMatchOption {
return [[[self alloc] initWithMatchOption:aMatchOption] autorelease];
}
-- (id)initWithMatchOption:(int)aMatchOption {
+- (id)initWithMatchOption:(SKTypeSelectMatchOption)aMatchOption {
if (self = [super init]){
dataSource = nil;
searchCache = nil;
@@ -127,11 +127,11 @@
matchesImmediately = newValue;
}
-- (int)matchOption {
+- (SKTypeSelectMatchOption)matchOption {
return matchOption;
}
-- (void)setMatchOption:(int)newValue {
+- (void)setMatchOption:(SKTypeSelectMatchOption)newValue {
matchOption = newValue;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit