• 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
reordering of subviews ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: reordering of subviews ?
      • From: Ondra Cada <email@hidden>
    • Re: reordering of subviews ?
      • From: Andrew Platzer <email@hidden>
  • Prev by Date: Re: Classic spawning Cocoa process??
  • Next by Date: Re: reordering of subviews ?
  • Previous by thread: Re: Classic spawning Cocoa process??
  • Next by thread: Re: reordering of subviews ?
  • Index(es):
    • Date
    • Thread