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

drawing a string into an image


  • Subject: drawing a string into an image
  • From: ber <email@hidden>
  • Date: Thu, 19 Sep 2002 01:29:04 -0400

(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.

  • Follow-Ups:
    • Re: drawing a string into an image
      • From: Marco Binder <email@hidden>
  • Prev by Date: NSImage vs NSImageRep uncompressed vs compressed data
  • Next by Date: Updating interface from a thread (was Re: 2 different questions)
  • Previous by thread: NSImage vs NSImageRep uncompressed vs compressed data
  • Next by thread: Re: drawing a string into an image
  • Index(es):
    • Date
    • Thread