Re: add a icon to window title bar ?
Re: add a icon to window title bar ?
- Subject: Re: add a icon to window title bar ?
- From: Gregory Weston <email@hidden>
- Date: Tue, 16 Nov 2010 21:59:04 -0500
Rajendran P wrote:
> Hi ,
> I am developing a non document based App. i need to add an icon to its main
> window title bar before the title string , any input on how to implement it
> would be help full
Found something in the list archives from 2008. You can use:
[[<window> standardWindowButton:NSWindowDocumentIconButton] setImage:<image>]
but before that will work you have to actually indicate that the window represents a file. If the represented file exists, the window will by default show its correct icon. If the represented file doesn't exist, it will show a generic icon. In either case, you should be able to override it with a custom image. If the window doesn't represent a file, it won't show the icon so you've got no image to override.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden