• 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: drawing a string into an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing a string into an image


  • Subject: Re: drawing a string into an image
  • From: Marco Binder <email@hidden>
  • Date: Thu, 19 Sep 2002 12:59:19 +0200

No, drawing into an NSImage is perfectly alright. In fact, when you lockFocus on your image, it creates an off-screen view in which you subsequently draw. So: everything is fine. And anyway: as long as it works, where s the problem? ;-)

marco


Am Donnerstag, 19.09.02 um 07:29 Uhr schrieb ber:

(duh, sent this from the wrong account so it may or may not show up duped)

I want to draw a string into my application's icon image which I seem to be able to do with
NSAttributedString's drawAtPoint: despite the fact the doc says "Don't invoke this method
while no NSView is focused." I assume that means one should only draw into an NSView
not an NSImage which as I say gives the desired result at first blush.

However I've seen examples offered up drawing strings directly into NSImages. Have I
misinterpreted the admonition in the cocoa documentation? If not, how do you draw text
into a dock tile?

Thanks,

brian
_______________________________________________
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.


--
|\ /| E-Mail: email@hidden WWW: www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
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.

References: 
 >drawing a string into an image (From: ber <email@hidden>)

  • Prev by Date: Re: Converting an NSString to a series of NSImages?
  • Next by Date: Adding properties to the Address Book database
  • Previous by thread: drawing a string into an image
  • Next by thread: BDRuleEngine suggestions sought
  • Index(es):
    • Date
    • Thread