NSImage Drawing
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