• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSBox is swallowing my mouse downs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Let's hope XP doesn't keep this "one-up" on OS X! [OT]
  • Next by Date: Re: Let's hope XP doesn't keep this
  • Previous by thread: Re: Let's hope XP doesn't keep this "one-up" on OS X! [OT]
  • Next by thread: Re: Let's hope XP doesn't keep this
  • Index(es):
    • Date
    • Thread