• 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
Re: Moving subviews to other window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving subviews to other window


  • Subject: Re: Moving subviews to other window
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 14 Dec 2006 10:26:39 -0800
  • Thread-topic: Moving subviews to other window

On Thu, 14 Dec 2006 11:29:12 +0100, Lorenzo <email@hidden> said:
>Hi,
>I have to move all the 4 views from a window to another window.
>I use subviews: and addSubview: and it works pretty well.
>The subviews array is sorted from the back to the front object, so
>since I have to add the subviews in the same order, and cannot remove the
>first subview from the subviews array without causing troubles, I use a
>reverse array. Well, now the 4 views are in the new window, with the proper
>sort order, but one of the 4 views, containing other subviews, shows its
>subviews with a different sort order. Bad.

Subviews of the same view do not have a "sort order". If your interface
relies upon layering two "siblings" (two subviews of the same view) one on
top of the other, your interface is wrong. The only way an view should
appear in front of another view is if the one is a subview of the other. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Moving subviews to other window
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Sorting a table using multiple sort descriptors while using bindings...
  • Next by Date: Ann: Open source UNIX manual page reader for your browser
  • Previous by thread: Moving subviews to other window
  • Next by thread: Re: Moving subviews to other window
  • Index(es):
    • Date
    • Thread