NSView -subviews ordering?
NSView -subviews ordering?
- Subject: NSView -subviews ordering?
- From: Matt Gemmell <email@hidden>
- Date: Wed, 29 May 2002 00:57:35 +0100
Hi all,
If I call an NSView instance's -subviews method to get an NSArray of all
immediate subviews of that NSView, is there any guarantee as to the
*order* of the views in the array?
For example, if I have a window with five square NSViews one beneath the
other, without overlap, and I call the window's contentView's -subviews
method, will the 0th element of the array refer to the topmost view, and
so on down?
Even if this is currently true, is it guaranteed to remain so?
Note that I would always have added the views one at a time, and in the
order I mentioned (top to bottom). It *seems* that the array is indeed
ordered in this way, but I'm hesitant to assume I can count on it.
Best,
-Matt
--
Matt Gemmell
Scotland Software
<
http://www.scotlandsoftware.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.