Changeset 3616

Show
Ignore:
Timestamp:
03/11/07 20:00:20 (1 year ago)
Author:
timothy
Message:

Fixes some more deprecated method use.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Controllers/MVCrashCatcher.m

    r3418 r3616  
    3636        NSString *logContent = nil; 
    3737        if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 
    38                 logContent = [NSString stringWithContentsOfFile:logPath]; 
     38                logContent = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:logPath]; 
    3939        else logContent = [NSString stringWithContentsOfFile:logPath encoding:NSUTF8StringEncoding error:NULL]; 
    4040 
  • trunk/Models/JVSQLChatTranscript.m

    r3579 r3616  
    611611 
    612612- (BOOL) _initializeDatabase { 
    613         NSString *setup = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"transcriptSchema" ofType:@"sql"]]; 
     613        NSString *setup = nil; 
     614        if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 
     615                setup = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:[[NSBundle mainBundle] pathForResource:@"transcriptSchema" ofType:@"sql"]]; 
     616        else setup = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"transcriptSchema" ofType:@"sql"] encoding:NSUTF8StringEncoding error:NULL]; 
    614617 
    615618        @synchronized( self ) { 
  • trunk/Views/JVStyleView.m

    r3613 r3616  
    410410        NSString *shell = nil; 
    411411        if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 
    412                 shell = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:name ofType:@"html"]]; 
     412                shell = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:[[NSBundle mainBundle] pathForResource:name ofType:@"html"]]; 
    413413        else shell = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:name ofType:@"html"] encoding:NSUTF8StringEncoding error:NULL]; 
    414414 
     
    920920        NSString *shell = nil; 
    921921        if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 
    922                 shell = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"html"]]; 
     922                shell = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"html"]]; 
    923923        else shell = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"html"] encoding:NSUTF8StringEncoding error:NULL]; 
    924924