Well, mea culpa, I have not been speaking clearly; what I want to badge is not the dock tile but the dock icon, and I cannot find a way to get at the view for that, so as to install a special class: The interface seems to be through NSApp:applicationIconImage and NSAPP:setApplicationIconImage: So there I am, back messing with bit maps to modify an image.

I would welcome a better way.

--  Jay Reynolds Freeman
---------------------
jay_reynolds_free...@mac.com
http://web.mac.com/jay_reynolds_freeman (personal web site)


On Jul 25, 2009, at 12:30 AM, Rob Keniger wrote:


On 25/07/2009, at 4:34 PM, Kyle Sluder wrote:

I ended up finding a basically sane way to do this -- just
one method, and I did not have to subclass NSView -- but
with a large hack for one feature:

Subclassing NSView is not a big deal. Just override -drawRect, draw the image you want, and draw the badge on top of it.

You've basically tried to reimplement the Quartz compositor. :)


Yep. As usual with Cocoa, if something seems really hard and complicated to do, you're probably doing it wrong. This is especially true if you are relatively new to Cocoa development.

Don't fight the framework!

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jay_reynolds_freeman%40mac.com

This email sent to jay_reynolds_free...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to