reordering of subviews ?
reordering of subviews ?
- Subject: reordering of subviews ?
- From: Robert Miller <email@hidden>
- Date: Wed, 28 Nov 2001 15:35:45 -0500
- Organization: RFM & Associates
Hello,
I have a view which contains some subviews that can be moved /
resized, etc., when I click on one of the subviews I want it to become
the frontmost subview overlaying the other subviews if needed. I tried
various ways to do this including this code where 'self' is the subview
inside of its mouseDown method..
[self retain];
[self removeFromSuperview];
[[self superview] addSubview:self];
the subview gets placed in an odd origin and i'm not sure if it is
really a subview again. it is not entirely visible, is there a way to
bring an NSView to the front of all other views ?
Thanx in advance,
Regards,
Bob M.