Re: How to find all clipping siblings for a view?
Re: How to find all clipping siblings for a view?
- Subject: Re: How to find all clipping siblings for a view?
- From: Jonathan Hess <email@hidden>
- Date: Sat, 17 Apr 2010 12:35:57 -0700
On Apr 16, 2010, at 9:48 AM, Kyle Sluder wrote:
>> It works OK with non layer-backed views in my experience, but you do get a build warning if sibling views overlap in a nib. Sibling views are drawn in the order they appear in the parent's list of subviews (or possibly the inverse order, I don't precisely recall). The exact effect you get depends on whether they erase the background first and suchlike.
>
> Also, IB had (has?) a bug where it would unarchive views in the
> reverse order from which they were stored in the nib.
Yep, this bug applied to custom views but has been fixed with IB 3.2/Snow Leopard.
> IB does allow
> you to reorder subviews, so if you are still being bitten by this you
> could build your interface and then reorder the views such that they
> are backwards. Then they should unarchive correctly at runtime.
If you're working with a release previous to IB 3.2/Snow Leopard, this workaround works great. It won't break when you start using 3.2. Also, using IB 3.2 and deploying to a release previous to Snow Leopard will work as expected.
Jon Hess
_______________________________________________
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