Changeset 3763 for trunk/Models
- Timestamp:
- 10/15/07 09:32:28 (1 year ago)
- Files:
-
- trunk/Models/JVEmoticonSet.m (modified) (1 diff)
- trunk/Models/JVSQLChatTranscript.m (modified) (1 diff)
- trunk/Models/JVStyle.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Models/JVEmoticonSet.m
r3615 r3763 244 244 245 245 - (NSString *) contentsOfStyleSheet { 246 NSString *contents = nil; 247 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 248 contents = [NSString performSelector:@selector( stringWithContentsOfURL: ) withObject:[self styleSheetLocation]]; 249 else contents = [NSString stringWithContentsOfURL:[self styleSheetLocation] encoding:NSUTF8StringEncoding error:NULL]; 246 NSString *contents = [NSString stringWithContentsOfURL:[self styleSheetLocation] encoding:NSUTF8StringEncoding error:NULL]; 250 247 return ( contents ? contents : @"" ); 251 248 } trunk/Models/JVSQLChatTranscript.m
r3638 r3763 611 611 612 612 - (BOOL) _initializeDatabase { 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]; 613 NSString *setup = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"transcriptSchema" ofType:@"sql"] encoding:NSUTF8StringEncoding error:NULL]; 617 614 618 615 @synchronized( self ) { trunk/Models/JVStyle.m
r3695 r3763 494 494 495 495 - (NSString *) contentsOfMainStyleSheet { 496 NSString *contents = nil; 497 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 498 contents = [NSString performSelector:@selector( stringWithContentsOfURL: ) withObject:[self mainStyleSheetLocation]]; 499 else contents = [NSString stringWithContentsOfURL:[self mainStyleSheetLocation] encoding:NSUTF8StringEncoding error:NULL]; 496 NSString *contents = [NSString stringWithContentsOfURL:[self mainStyleSheetLocation] encoding:NSUTF8StringEncoding error:NULL]; 500 497 return ( contents ? contents : @"" ); 501 498 } 502 499 503 500 - (NSString *) contentsOfVariantStyleSheetWithName:(NSString *) name { 504 NSString *contents = nil; 505 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 506 contents = [NSString performSelector:@selector( stringWithContentsOfURL: ) withObject:[self variantStyleSheetLocationWithName:name]]; 507 else contents = [NSString stringWithContentsOfURL:[self variantStyleSheetLocationWithName:name] encoding:NSUTF8StringEncoding error:NULL]; 501 NSString *contents = [NSString stringWithContentsOfURL:[self variantStyleSheetLocationWithName:name] encoding:NSUTF8StringEncoding error:NULL]; 508 502 return ( contents ? contents : @"" ); 509 503 } … … 513 507 if( ! url ) return @""; 514 508 515 NSString *contents = nil; 516 if( floor( NSAppKitVersionNumber ) <= NSAppKitVersionNumber10_3 ) // test for 10.3 517 contents = [NSString performSelector:@selector( stringWithContentsOfURL: ) withObject:url]; 518 else contents = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:NULL]; 509 NSString *contents = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:NULL]; 519 510 520 511 NSURL *resources = [NSURL fileURLWithPath:[[NSBundle mainBundle] resourcePath]];
