• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
drawAtPoint?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: drawAtPoint?
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: drawAtPoint?
      • From: "Mike R. Manzano" <email@hidden>
  • Prev by Date: Problem with distributed objects and NSArrayController
  • Next by Date: Re: Mouse tracking rects
  • Previous by thread: Problem with distributed objects and NSArrayController
  • Next by thread: Re: drawAtPoint?
  • Index(es):
    • Date
    • Thread