Changeset 3634

Show
Ignore:
Timestamp:
03/28/07 22:59:37 (2 years ago)
Author:
timothy
Message:

Correct some deprecated method usage.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plug-Ins/F-Script Support/JVFScriptChatPlugin.m

    r3565 r3634  
    4141                NSString *contents = nil; 
    4242                if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 
    43                         contents = [NSString stringWithContentsOfFile:path]; 
     43                        contents = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:path]; 
    4444                else contents = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:NULL]; 
    4545 
     
    109109        NSString *contents = nil; 
    110110        if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 
    111                 contents = [NSString stringWithContentsOfFile:[self scriptFilePath]]; 
     111                contents = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:[self scriptFilePath]]; 
    112112        else contents = [NSString stringWithContentsOfFile:[self scriptFilePath] encoding:NSUTF8StringEncoding error:NULL]; 
    113113 
  • trunk/Plug-Ins/JavaScript Support/JVJavaScriptChatPlugin.m

    r3564 r3634  
    145145                NSString *contents = nil; 
    146146                if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 
    147                         contents = [NSString stringWithContentsOfFile:[self scriptFilePath]]; 
     147                        contents = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:[self scriptFilePath]]; 
    148148                else contents = [NSString stringWithContentsOfFile:[self scriptFilePath] encoding:NSUTF8StringEncoding error:NULL]; 
    149149