• 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: Trying to draw numbers into a dock icon badge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to draw numbers into a dock icon badge


  • Subject: Re: Trying to draw numbers into a dock icon badge
  • From: Greg Herlihy <email@hidden>
  • Date: Sun, 01 Jan 2006 22:30:04 -0500

This is just a guess, but I'm thinking that a font whose size is 2 would be
very, very, very small.

Greg

On 1/1/06 5:34 PM, "Keith Pritchard" <email@hidden> wrote:

> Hi all and happy new year!
>
> I'm trying to draw a badge, as in mail.app, and then draw the numbers
> onto it.
>
> Thanks to code snippets and advice from the list (thanks!) I've got
> the badge on there but can't seem to draw numbers onto it.
> I'm pretty new at the cocoa thing really so apologies but I'd
> appreciate any help that's out there.
>
> partial code snippet below.... it IS displaying the badget, but I'm
> obviously messing up the attributedstring drawing.
>
> [appImage lockFocus];
> [badge compositeToPoint:NSMakePoint(80, 80)
> operation:NSCompositeSourceOver];
>
> //quick attempt to draw a 1 in the badge
> [@"1" drawAtPoint:NSMakePoint(10,10) withAttributes:[NSDictionary
> dictionaryWithObjectsAndKeys:
>     [NSColor whiteColor], NSForegroundColorAttributeName,
>     [NSFont systemFontOfSize:2], NSFontAttributeName,
> nil]];
>
> [appImage unlockFocus];


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trying to draw numbers into a dock icon badge
      • From: Keith Pritchard <email@hidden>
    • Re: Trying to draw numbers into a dock icon badge
      • From: August Trometer <email@hidden>
References: 
 >Trying to draw numbers into a dock icon badge (From: Keith Pritchard <email@hidden>)

  • Prev by Date: Re: Pointer to id
  • Next by Date: Re: Trying to draw numbers into a dock icon badge
  • Previous by thread: Trying to draw numbers into a dock icon badge
  • Next by thread: Re: Trying to draw numbers into a dock icon badge
  • Index(es):
    • Date
    • Thread