drawAtPoint?
drawAtPoint?
- Subject: drawAtPoint?
- From: Mark Dawson <email@hidden>
- Date: Tue, 8 Mar 2005 19:26:44 -0800
I'm trying to test a string draw, but I'm having trouble using drawAtPoint
NSMutableDictionary *attributes = [[NSMutableDictionary alloc] init];
[attributes setObject:[NSFont fontWithName:@"Times" size:18] forKey:NSFontAttributeName];
[[[NSString alloc] initWithString: @"TEST"] drawAtPoint:NSMakePoint(0, imageBounds.size.height/2), withAttributes:attributes];
I get a compiler error that "withAttributes" is undeclared and drawAtPoint can't be found.
I must be misreading the documentation (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/NSStringAdditions.html#//apple_ref/doc/uid/20000155/BAJHIACD) which says that the AppKit adds these methods to NSString. Can someone clue me in on what my mistake is?
Thanks!
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden