Re: NSView -subviews ordering?
Re: NSView -subviews ordering?
- Subject: Re: NSView -subviews ordering?
- From: Brock Brandenberg <email@hidden>
- Date: Wed, 29 May 2002 14:53:34 -0500
Hi Ondra.
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,
That's self-evident -- otherwise it would be ...UsingSelector, not
function.
True. I've seen two previous posts from individuals not being able to
make it work, though, and this was the reason, so I thought I'd
reinforce the point.
so you need to put it outside of your @implementation/@end or in an
external file.
You don't need to do that. Why, on earth?!?
I use the same sort function with a couple of NSView subclasses, so I
simply put it in a file that gets included by both rather than duplicate
code.
Brock
----- 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.