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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to