diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-09-13 21:31:56 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-09-13 21:31:56 +0000 |
| commit | de50d760fd03a7eed9a614a3d4a701f2097c88d9 (patch) | |
| tree | abd27fe9c76372b7b819670dd15ec859de94e164 /macosx/PcsxrPlugin.m | |
| parent | 56d5b481986072f06ac516f43b68ec1d5b3aac1b (diff) | |
| download | pcsxr-de50d760fd03a7eed9a614a3d4a701f2097c88d9.tar.gz | |
Changing a few Objective C classes to have their ivars hidden.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87167 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrPlugin.m')
| -rwxr-xr-x | macosx/PcsxrPlugin.m | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/macosx/PcsxrPlugin.m b/macosx/PcsxrPlugin.m index 5fe0ff3e..38a76953 100755 --- a/macosx/PcsxrPlugin.m +++ b/macosx/PcsxrPlugin.m @@ -17,17 +17,24 @@ @interface PcsxrPlugin () @property (readwrite, copy) NSString *path; -@property (readwrite, strong) NSDate *modDate; @property (readwrite, strong) NSString *name; -@property (readwrite, strong) NSString *fullPlugPath; +@property (strong) NSDate *modDate; +@property (strong) NSString *fullPlugPath; +@property long version; +@property (readwrite) int type; +@property int active; + + @end @implementation PcsxrPlugin -@synthesize path; -@synthesize name; +@synthesize active; @synthesize fullPlugPath; @synthesize modDate; +@synthesize path; +@synthesize type; +@synthesize version; + (NSString *)prefixForType:(int)aType { @@ -125,7 +132,7 @@ NSFileManager *fm = [NSFileManager defaultManager]; pluginRef = NULL; - name = nil; + self.name = nil; self.path = aPath; NSString *goodPath = nil; if ([aPath isAbsolutePath]) { @@ -366,11 +373,6 @@ return [NSString stringWithFormat:@"v%ld.%ld.%ld", version>>16,(version>>8)&0xff,version&0xff]; } -- (int)type -{ - return type; -} - - (NSUInteger)hash { return [path hash]; @@ -378,18 +380,18 @@ - (NSString *)description { - if (name == nil) + if (_name == nil) return [path lastPathComponent]; - return [NSString stringWithFormat:@"%@ %@ [%@]", name, [self displayVersion], [path lastPathComponent]]; + return [NSString stringWithFormat:@"%@ %@ [%@]", self.name, [self displayVersion], [path lastPathComponent]]; } - (NSString*)debugDescription { - if (name == nil) { + if (_name == nil) { return fullPlugPath; } - return [NSString stringWithFormat:@"%@, %@ [%@]", name, [self displayVersion], fullPlugPath]; + return [NSString stringWithFormat:@"%@, %@ [%@]", self.name, [self displayVersion], fullPlugPath]; } // the plugin will check if it's still valid and return the status |
