Re: OK, but what do 'attributes' look like?
Re: OK, but what do 'attributes' look like?
- Subject: Re: OK, but what do 'attributes' look like?
- From: Dave Rosborough <email@hidden>
- Date: Mon, 8 Mar 2004 21:54:35 -0800
On 8-Mar-04, at 9:37 PM, Denis Stanton wrote:
I tried looking at NSAttributedString already and came up with:
[myString drawInRect: myRect with attributes: [NSDictionary
dictionaryWithObject @"Helvetica 9-point" forKey:
NSFontAttributeName]];
You need to have an NSFont as the object for the NSFontAttributeName
key...
Try this:
[myString drawInRect:myRect withAttributes:[NSDictionary
dictionaryWithObject:[NSFont fontWithName:@"Helvetica" size:9.0]
forKey:NSFontAttributeName]];
TTYL
DaveR
_______________________________________________
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.