• 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
removeFromSuperview and mouse events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

removeFromSuperview and mouse events


  • Subject: removeFromSuperview and mouse events
  • From: Joshua Strickon <email@hidden>
  • Date: Wed, 8 Apr 2009 17:26:06 -0400

I have a project in which I am adding nsbox controls as a subviews to the main nsview. As a test, I do this on a rightmousedown. I then use the leftmousedown to select and move the boxes around. This all works fine. The problem I am having is that I would like the selected object to be drawn at the top when selected. I figured I could do this by removing it from the superview and readding it.

If I make any call to removeFromSuperview during the mousedown event I don't any additional mousedragged or mouse up events.

I have tried retaining the subview, forcing it not to redraw and more.

What is the best way to programatically set and change subviews so you can control the drawing order? Where are these missing events going?

Thanks


Josh _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: removeFromSuperview and mouse events
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: IKImageBrowserView crash
  • Next by Date: Send click to window
  • Previous by thread: Re: navigate in and around xib files
  • Next by thread: Re: removeFromSuperview and mouse events
  • Index(es):
    • Date
    • Thread