• 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
Re: I need a milder application badge (solution)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I need a milder application badge (solution)


  • Subject: Re: I need a milder application badge (solution)
  • From: Jay Reynolds Freeman <email@hidden>
  • Date: Sat, 25 Jul 2009 01:58:13 -0700

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
---------------------
email@hidden
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 (email@hidden)

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:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: I need a milder application badge (solution)
      • From: Kyle Sluder <email@hidden>
References: 
 >I need a milder application badge (From: Jay Reynolds Freeman <email@hidden>)
 >Re: I need a milder application badge (solution) (From: Jay Reynolds Freeman <email@hidden>)
 >Re: I need a milder application badge (solution) (From: Kyle Sluder <email@hidden>)
 >Re: I need a milder application badge (solution) (From: Rob Keniger <email@hidden>)

  • Prev by Date: Re: I need a milder application badge (solution)
  • Next by Date: Re: NSTableView - populating from C procedure
  • Previous by thread: Re: I need a milder application badge (solution)
  • Next by thread: Re: I need a milder application badge (solution)
  • Index(es):
    • Date
    • Thread