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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to