Re: Recognizing standard about box
Re: Recognizing standard about box
- Subject: Re: Recognizing standard about box
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 28 Jun 2002 06:27:54 -0400
on 02-06-28 12:09 AM, Andy Lee at email@hidden wrote:
>
At 5:42 PM -0400 6/27/02, Bill Cheeseman wrote:
>
> Is there any way to determine whether an open window is the standard Cocoa
>
> document-based application about box?
>
>
Wait a minute. I just realized you can simply look at the window's
>
delegate. If it's an instance of NSSystemInfoPanel, then it's the
>
About panel.
I was about to suggest the same thing in response to your previous very
clever post. However, how do you know there will never be another panel in
an application having the same delegate? Its name is more general than I
would expect if it were specialized to the standard application About panel.
I tried to look inside NSSystemInfoPanel.nib, but it won't open using
Interface Builder or nibtool.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.