• 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: Icon in window title
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Icon in window title


  • Subject: Re: Icon in window title
  • From: Max Horn <email@hidden>
  • Date: Wed, 30 May 2001 10:31:19 +0200

At 17:01 Uhr -0700 29.05.2001, Tom Waters wrote:
Thanks so much for replying.

It is definitely a bug that you can't at least remove the proxy icon. I would be happy to simply set the title to a plain string when it wasn't representing a filename, but even then, it keeps the last set proxy icon.

I believe it will be generally useful to allow developers to set the proxy icon explicitly, as opposed to requiring it to be the icon from the file... for example, one could composite an indicator for read only, or modified onto the icon and dynamically update the title.

Here's a couple of methods that would be nice in NSWindow's delegate.

- (NSImage*)proxyImageForWindow:(NSWindow *)window;
- (BOOL)window:(NSWindow *)window
writeProxyToPasteboard:(NSPasteboard*)pboard

This would allow the delegate to dynamically change the icon AND the contents of the pasteboard.

The writeProxyToPasteboard: sounds fair enought, but I think it would be a bad idea to set the image passive like that - after all, when should the window re-query that? Every millisecond or what? So I4d prefer am active method of NSWindow here,
- (void)setProxyImage:(NSImage*)image
or something alike

Just my two cents of course, and I'd be happy enough if Apple added such API ;) Only problem of course is how I best provide backward compatibility.... oh well, I guess latest with 10.1 we'll have to runs two installs of OS X to make sure my app still runs on 10.0...


Max
--
-----------------------------------------------
Max Horn
C++/ObjC/Java Developer

email: <mailto:email@hidden>
phone: (+49) 6151-494890


References: 
 >Re: Icon in window title (From: Tom Waters <email@hidden>)

  • Prev by Date: Getting Alert sound preference
  • Next by Date: Re: BSD Cocoa GUI Examples - where?
  • Previous by thread: Re: Icon in window title
  • Next by thread: Re: Icon in window title
  • Index(es):
    • Date
    • Thread