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/archive%40mail-archive.com

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

Reply via email to