Application badge (like Mail) in views other than the doc icon?
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