Re: Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
Re: Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
- Subject: Re: Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
- From: Aki Inoue <email@hidden>
- Date: Mon, 16 Feb 2004 13:37:01 -0800
Robert,
Please make sure fontForString is really nil.
An issue here is that you're not terminating vararg stack for
dictionaryWithObjectsAndKeys: with nil.
Aki
On 2004/02/16, at 6:42, Roberto Sobachi wrote:
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.
_______________________________________________
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.