• 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: Drawing application dock icon from Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing application dock icon from Cocoa?


  • Subject: Re: Drawing application dock icon from Cocoa?
  • From: Stephane Sudre <email@hidden>
  • Date: Fri, 12 Dec 2003 15:42:11 +0100

On 2003.12.12, at 02:42 午後, Kaelin Colclasure wrote:

I have found Apple's "Tiler" example, which shows how your application can draw its own dock icon using Carbon APIs. Is there an NSView-based way do accomplish this under Cocoa? Or does this require using the Carbon APIs and Quartz directly?

Basically,

you create a NSImage, lock the Focus on it and draw what you want , then you unlock the Focus and use [NSApp setApplicationIconImage:myImage];

IIRC, there's a sample code from one WWDC 03 session (Cocoa Tips maybe) which shows this and the badge thing too.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Drawing application dock icon from Cocoa?
      • From: Kaelin Colclasure <email@hidden>
References: 
 >Drawing application dock icon from Cocoa? (From: Kaelin Colclasure <email@hidden>)

  • Prev by Date: Re: Drawing application dock icon from Cocoa?
  • Next by Date: NSObject copy explanation
  • Previous by thread: Re: Drawing application dock icon from Cocoa?
  • Next by thread: Re: Drawing application dock icon from Cocoa?
  • Index(es):
    • Date
    • Thread