Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
- Subject: Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
- From: Roberto Sobachi <email@hidden>
- Date: Mon, 16 Feb 2004 15:42:18 +0100
I've got problems assign to NSFont a font and size.
I need to insert into a NSDictionary a NSFont class, but when I start
application it returns that NSFont is nil.
This is my code:
NSFont *fontForString = [NSFont fontWithName:@"Times-Roman" size:9.0];
NSMutableDictionary *myDictionary = [NSMutableDictionary
dictionaryWithObjectsAndKeys: [NSColor whiteColor],
NSForegroundColorAttributeName, fontForString, NSFontAttributeName];
Roberto Sobachi
developer
http://www.xidiar.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.