Changeset 3616
- Timestamp:
- 03/11/07 20:00:20 (1 year ago)
- Files:
-
- trunk/Controllers/MVCrashCatcher.m (modified) (1 diff)
- trunk/Models/JVSQLChatTranscript.m (modified) (1 diff)
- trunk/Views/JVStyleView.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Controllers/MVCrashCatcher.m
r3418 r3616 36 36 NSString *logContent = nil; 37 37 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 38 logContent = [NSString stringWithContentsOfFile:logPath];38 logContent = [NSString performSelector:@selector( stringWithContentsOfFile: ) withObject:logPath]; 39 39 else logContent = [NSString stringWithContentsOfFile:logPath encoding:NSUTF8StringEncoding error:NULL]; 40 40 trunk/Models/JVSQLChatTranscript.m
r3579 r3616 611 611 612 612 - (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]; 614 617 615 618 @synchronized( self ) { trunk/Views/JVStyleView.m
r3613 r3616 410 410 NSString *shell = nil; 411 411 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"]]; 413 413 else shell = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:name ofType:@"html"] encoding:NSUTF8StringEncoding error:NULL]; 414 414 … … 920 920 NSString *shell = nil; 921 921 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"]]; 923 923 else shell = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"html"] encoding:NSUTF8StringEncoding error:NULL]; 924 924
