NSBox is swallowing my mouse downs
NSBox is swallowing my mouse downs
- Subject: NSBox is swallowing my mouse downs
- From: email@hidden
- Date: Fri, 6 Jul 2001 07:04:01 -0400
*my apologies if this message comes through twice*
Hey everybody,
I've been having nothing but bad luck running from one problem to
another when trying to show and hide controls.
First, I grouped my controls into NSBoxes, and was saddened to learn
that HideControl() has no equivalent in cocoa.
...but not to worry, since I could simply remove the boxes from their
superView and add them back. This worked perfectly _except_ views do
not re-size (in response to window re-sizing) when they are removed from
their superView :(
The next apparent solution was to make each of my NSBoxes the full size
of the window, and re-size them to the window's new bounds before I
re-added them to the superView. This worked great _except_ the
overlapping NSBox's swallow eachother's mouse downs!
Since I often have 2 or 3 of the Boxes visible at a given time, this
becomes a major problem as the front-most box blocks all the mouse
events from reaching the boxes below it.
Is there a way to get an NSBox to pass it's clicks to the controls
behind it? or is there a better way I should be hiding and showing (or
re-sizing) my boxes?
Many thanks for your help,
-Adam Iser