Re: NSView -subviews ordering?
Re: NSView -subviews ordering?
- Subject: Re: NSView -subviews ordering?
- From: Brock Brandenberg <email@hidden>
- Date: Wed, 29 May 2002 13:01:04 -0500
Hi Matt.
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?
You can also re-order your subviews using
sortSubviewsUsingFunction:context:. Its documentation is pretty
accurate, except that Apple doesn't make it clear that it should be a C
function, not an object method, so you need to put it outside of your
@implementation/@end or in an external file. It works much like a qsort
function.
Brock Brandenberg
----- industrial design @ bergdesign.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.