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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to