• 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: programming the dock icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programming the dock icon


  • Subject: Re: programming the dock icon
  • From: John Timmer <email@hidden>
  • Date: Wed, 09 Apr 2003 08:30:11 -0400

> To make changes to the application's Dock icon, AFAIK, you also have to
> use Carbon. See
> <http://developer.apple.com/techpubs/macosx/Carbon/
> HumanInterfaceToolbox/DockManager/Dock_Manager/dockmngr_refchap/
> function_group_3.html>
Actually, it's quite a bit easier. In NSApplication, there's:
- (void) setApplicationIconImage: (NSImage *) anImage
So you can do all the compositing to an NSImage and just dump that to the
dock icon. It seems to be retained for you after calling this (ie - you can
release the NSImage in your code with no ill effect).

Cheers,

John
_______________________________________________
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.

References: 
 >Re: programming the dock icon (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: How to deselect a selected row?
  • Next by Date: Automatically Launching an App
  • Previous by thread: Re: programming the dock icon
  • Next by thread: FSPathMakeRef() & unicode problem
  • Index(es):
    • Date
    • Thread