• 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
NSImage Drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage Drawing


  • Subject: NSImage Drawing
  • From: Justin Wood <email@hidden>
  • Date: Wed, 25 Jul 2001 10:59:41 -0400

I apologize in advance in this question is a little basic but the answer has been eluding me for quite some time.

I am trying to add a badge display, similar to that of the Mail.app, to my application. I would like the number of messages received to be displayed on the dock icon! Sounds simple enough, and it is quite trivial to change the Application's icon in the dock, no problems there.

Now, the problem, I have a badge icon (actually stolen from Mail.app... but I'll make my own :), but how do I composite 2 NSImages together, resulting in another NSImage? I see the composite operations, but they seem to be gearing towards direct drawing, which I don't think is what the NSApp method, setApplicationImage:(NSImage *) wants...

Any help would be greatly appreciated!

Thanks in advance,

Sincerely,

Justin Wood


  • Follow-Ups:
    • Re: NSImage Drawing
      • From: Kyle Mandli <email@hidden>
  • Prev by Date: Re: drop on dockling
  • Next by Date: Re: Obj-C vs Java
  • Previous by thread: Re: drop on dockling
  • Next by thread: Re: NSImage Drawing
  • Index(es):
    • Date
    • Thread