• 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
Re: drawAtPoint?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawAtPoint?


  • Subject: Re: drawAtPoint?
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Tue, 8 Mar 2005 19:33:15 -0800

There should be no comma before withAttributes, just a space.

On Mar 8, 2005, at 7:26 PM, Mark Dawson wrote:

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.

_______________________________________________ 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: Mark Dawson <email@hidden>
References: 
 >drawAtPoint? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Mouse tracking rects
  • Next by Date: Detect URL in NSTextView
  • Previous by thread: drawAtPoint?
  • Next by thread: Re: drawAtPoint?
  • Index(es):
    • Date
    • Thread