Changeset 74
- Timestamp:
- 12/27/05 14:38:08 (3 years ago)
- Files:
-
- trunk/Libs/SSHKey.h (modified) (1 diff)
- trunk/Libs/SSHKey.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Libs/SSHKey.h
r3 r74 7 7 @interface SSHKey : NSObject 8 8 { 9 NSString *full path;9 NSString *fullPath; 10 10 int type; 11 11 } trunk/Libs/SSHKey.m
r28 r74 21 21 } 22 22 23 full path = [[NSString stringWithString:thePath] retain];23 fullPath = [thePath copy]; 24 24 25 25 /* Read the file and determine what type we're working with. */ 26 handle = [NSFileHandle fileHandleForReadingAtPath:full path];26 handle = [NSFileHandle fileHandleForReadingAtPath:fullPath]; 27 27 lines = [[[[NSString alloc] initWithData:[handle availableData] encoding:NSASCIIStringEncoding] autorelease] componentsSeparatedByString:@"\n"]; 28 28 … … 37 37 38 38 return self; 39 } 40 41 - (void) dealloc 42 { 43 [fullPath release]; 44 [super dealloc]; 39 45 } 40 46 … … 71 77 - (NSString *)path 72 78 { 73 return full path;79 return fullPath; 74 80 } 75 81
