• 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
Application badge (like Mail) in views other than the doc icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application badge (like Mail) in views other than the doc icon?


  • Subject: Application badge (like Mail) in views other than the doc icon?
  • From: Robert Monaghan <email@hidden>
  • Date: Sun, 15 Jan 2012 09:51:07 -0800

Hi Everyone,

My app has an NSCollectionView of devices, each with a custom icon.
I have a need to display the number of downloads happening from a given device. The way that I want to do this, is to place a badge on each icon.
I have just tried to implement a "clone" of the NSDockTile badge that Mail uses. Needless to say, it isn't a perfect match.. :)

I was wondering if anyone out there has been able to coax "setBadgeLabel" to draw on a custom NSView, rather than the dockTile?

Could I do something like this: (typed into the email.. errors are likely)

[[NSApp dockTile] setContentView:myCustomView];
[[NSApp dockTile] setBadgeLabel:@"20"];
[[NSApp dockTile] setContentView:nil];

Would this end up causing weirdness with my App's icon?
(Or should I stick to my own routines for drawing a badge?)

Thanks!

bob.

_______________________________________________

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

  • Prev by Date: Re: My services in my own app
  • Next by Date: Re: Core Data : Correct way to force reading property from sql store?
  • Previous by thread: Re: My services in my own app
  • Next by thread: Re: Core Data : Correct way to force reading property from sql store?
  • Index(es):
    • Date
    • Thread