Re: Using different pictures in an NSRunAlertPanel
Re: Using different pictures in an NSRunAlertPanel
- Subject: Re: Using different pictures in an NSRunAlertPanel
- From: Eric Peyton <email@hidden>
- Date: Sat, 13 Apr 2002 13:25:35 -0500
Why don't you get the dialog from NSGetAlertPanel() (from NSPanel.h).
Then look through the windows contents for the NSImageView (enumerate
the windows subviews). Then when you have the subview that is the
NSImageView - send that imageView a setImage: with whatever image you
want.
Once the window is modified, then you can run the window in a modal
event loop.
When finished use NSReleaseAlertPanel.
Check the NSPanel.h header file for more info ...
Eric
On Saturday, April 13, 2002, at 01:09 PM, deekpyro wrote:
I'm using a NSRunAlertPanel in my app to display that there is a
warning,
but everytime it comes up it shows my standard app picture. Is there a
simple way of just telling it to use a stardard warning picture without
having to create another window for this dialog?
Thanks
_______________________________________________
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.
_______________________________________________
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.