Re: Cocoa Drawers Example
Re: Cocoa Drawers Example
- Subject: Re: Cocoa Drawers Example
- From: jgo <email@hidden>
- Date: Sat, 16 Jun 2001 17:21:42 -0700
>
Scott Anguish <email@hidden> Wed, 2001-06-06 17:13:45 -0400
>
At the simplest level you can drag out a window from the IB Palette that
>
has an NSDrawer already attached, and it will put the various items into
>
your nib (a window, the drawer and a top level content view which is
>
correctly connected to the drawer).
>
>
The basic idea though is that you can drag a drawer into your nib, and
>
then control-drag to make the connection from that drawer to the
>
'parentWindow' that it belongs too. You must then connect the
>
'contentView' of the drawer to the view that you want to have inside
>
the drawer area (add a customview/NSView to the top level of your
>
nib by dragging it from the palette).
>
>
Then, just drop in a button in the main window, control-drag it to the
>
NSDrawer icon and connect it to toggle: and you have a basic drawers
>
implementation setup!
Yep, so far, so good. But let's say you want to have some
settings in the drawer, and click a button to apply them
to objects in the parent window. When you get the word
that the button is clicked, it nicely lets you know that
the button was the sender. But to get back to the parent
window you need to access the drawer that contains the
view(s) that contains the button. Only I don't see a way
to do that. If I try to grope my way up the view hierarchy
from the button, I never get to the drawer itself.
John G. Otto Nisus Software, Engineering
www.infoclick.com www.mathhelp.com www.nisus.com software4usa.com
EasyAlarms PowerSleuth NisusEMail NisusWriter MailKeeper QUED/M
My opinions are probably not those of Nisus Software, Inc.