Re: Is window a drawer?
Re: Is window a drawer?
- Subject: Re: Is window a drawer?
- From: 陳銘崧 a.k.a. James Chen <email@hidden>
- Date: Fri, 5 Nov 2004 22:16:25 +0800
Hi,
By looking up the class hierarchy, NSWindow and NSDrawer both inherit
from NSResponder.
So a NSWindow is never a NSDrawer or vice versa.
But NSWindow contains NSDrawer(s).
Both NSWindow and NSDrawer have methods to access each other.
NSDrawer - (NSWindow *)parentWindow;
NSWindow - (NSArray *)drawers;
HTH,
James
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On Nov 5, 2004, at 4:36 PM, Tim Conkling wrote:
Is there an easy way to determine whether a given NSWindow is a
drawer? There's an isSheet method for determining whether a window is
a sheet, but I can't figure out how to do the same with drawers.
Thanks,
Tim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden