Changeset 3634
- Timestamp:
- 03/28/07 22:59:37 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plug-Ins/F-Script Support/JVFScriptChatPlugin.m
r3565 r3634 41 41 NSString *contents = nil; 42 42 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 43 contents = [NSString stringWithContentsOfFile:path];43 contents = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:path]; 44 44 else contents = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:NULL]; 45 45 … … 109 109 NSString *contents = nil; 110 110 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 111 contents = [NSString stringWithContentsOfFile:[self scriptFilePath]];111 contents = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:[self scriptFilePath]]; 112 112 else contents = [NSString stringWithContentsOfFile:[self scriptFilePath] encoding:NSUTF8StringEncoding error:NULL]; 113 113 trunk/Plug-Ins/JavaScript Support/JVJavaScriptChatPlugin.m
r3564 r3634 145 145 NSString *contents = nil; 146 146 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 147 contents = [NSString stringWithContentsOfFile:[self scriptFilePath]];147 contents = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:[self scriptFilePath]]; 148 148 else contents = [NSString stringWithContentsOfFile:[self scriptFilePath] encoding:NSUTF8StringEncoding error:NULL]; 149 149
