Post by StÃ©phane Sudre
Yet when I add a NSButton inside the Content View
via IB. The NSButton
doesn't appear when I open the Drawer.
Should I make some calls to make it appear ?
Aha, it's a nice little trick Apple has played (first
off not having NSDrawer fully documented).
one, the content view of the drawer window is
actually an NSBox, you can programatically reset it's
content view via the -[NSDrawer setContentView:]
two, when you use IB, make sure that you have the
drawers box selected before you drag anything into it.
That should help in placing your butting into the box
(said drawer) content view.
That was exactly the problem. Thanks a lot for the experts replies.
Now another question for "Stump the Experts".
When I'm opening the NSDrawer, the size of the Drawer is bad. I need to
manually drag the NSDrawer to its fully correct size. Can't it do it
correctly by itself ?
Another question : can't we set the size of the NSDrawer and make it not
change. It seems that whatever value I'm typing in Interface Builder for the
min and Max size is not taken into account when I run the program and resize
the parent window
Another quizz: is there a openClose method for NSDrawers ? Since it seems
that a NSDrawer knows when it is opened or closed, why can't I just have one
NSButton to ask it to open or close itself.
The prizes are all my consideration.