• 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: Where is the API for proxy icons?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is the API for proxy icons?


  • Subject: Re: Where is the API for proxy icons?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 4 Jan 2005 15:31:45 +0100

At 16:02 Uhr +1000 04.01.2005, Mark Patterson wrote:
On 04/01/2005, at 14:20, Scott Stevenson wrote:

On Jan 3, 2005, at 7:01 PM, Mark Patterson wrote:
Hillegass. Can anyone point me in the right direction for getting the proxy icon to appear and work?

If you have a multi-document Cocoa app, the proxy icon should appear as soon as the file is saved.

Ah, sorry, I spoke to soon. You are right. It doesn't appear with an untitled window. I hadn't noticed that.

(For the archives:) In case anyone wants to do more involved things with proxy icons, there are two ways, depending on your needs:


1) NSWindow has a setRepresentedFilename: method where you can pass a path. This will set your window title to the file's display name, and add the corresponding proxy icon. This is probably what NSDocument uses internally when a file is saved.

2) You can get a Carbon WindowRef from your NSWindow and then use Carbon proxy icon functions (see the Carbon/Classic Window Manager 2.0 docs) to do even more messy things.

Just one plea: Don't use this to put your app's icon in a window's title. MacOS users expect this to be the current document, and you already have your app's name in the menu bar and its icon in the dock to tell the user which app the window belongs to. You'll probably also be violating the HIG.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: Where is the API for proxy icons?
      • From: j o a r <email@hidden>
References: 
 >Where is the API for proxy icons? (From: Mark Patterson <email@hidden>)
 >Re: Where is the API for proxy icons? (From: Scott Stevenson <email@hidden>)
 >Re: Where is the API for proxy icons? (From: Mark Patterson <email@hidden>)

  • Prev by Date: Re: NSHost currentHost Slow
  • Next by Date: Re: Where is the API for proxy icons?
  • Previous by thread: Re: Where is the API for proxy icons?
  • Next by thread: Re: Where is the API for proxy icons?
  • Index(es):
    • Date
    • Thread