I was considering using an NSDrawer in a channel I am writing,
and I can successfully call open/close/toggle on the drawer after adding
it to my nib and hooking up the contentView with a new NSView
instance in my nib as well.
However I am noticing one annoying 'feature'.
Since the drawer is non-modal, I am seeing that if the user chooses to
leave the channel and load up a different channel, the drawer stays open.
If the user goes back to my channel and requests to view the drawer
with a button that calls drawer.toggle, a new instance of the drawer
appears.
I tried hooking up a trigger to .didRemove or .willRemove
to call drawer.close but I guess
that is remove in the sense of deleting the channel as opposed
to remove the channel as the current active channel?
Does someone know if we can programmatically close a drawer if
the user left one open when the channel comes out of visible scope?
Otherwise I might just deal with the view in a modal sheet.