Re: Weird bug in IB...
Re: Weird bug in IB...
- Subject: Re: Weird bug in IB...
- From: Quincey Morris <email@hidden>
- Date: Thu, 13 Nov 2008 00:44:57 -0800
On Nov 12, 2008, at 23:24, Jean-Nicolas Jolivet wrote:
One quick question, how can I modify my TextView's z-order? I'm
looking at NSView's methods but can't seem to find one that does
that? (I'm probably just missing it since NSView's got a good bunch
of'em!... :)
I always did it in IB before....
The subviews of a view are an array in drawing order. (Element 0 is
backmost, I believe, but I can never quite remember.) Therefore, you
can use removeFromSuperview + addSubview:positioned:relativeTo:, or
sortSubviewsUsingFunction:context:.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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