Re: lastKeyViewTraversingSubviewsBeginningWithView
Re: lastKeyViewTraversingSubviewsBeginningWithView
- Subject: Re: lastKeyViewTraversingSubviewsBeginningWithView
- From: Joe Ranieri <email@hidden>
- Date: Sun, 21 Feb 2010 08:38:19 -0500
On 2/21/10 5:53 AM, Arved von Brasch wrote:
Hi Cocoa List,
I'm occasionally seeing the following warning from the runtime while testing my application:
warning: _lastKeyViewTraversingSubviewsBeginningWithView: encountered 5000 views!!!
It usually occurs when a NSCollectionView is being refreshed, but not every time.
I've tried Googling for this error with no help, and it doesn't seem to appear in the documentation either.
Anyone know what it means, or what the likely cause could be? It doesn't seem to be affecting anything during testing.
My test data has just over 5000 items, but the collection view is only ever displaying just over 1000 items.
Thanks in advance,
Arved
I believe that NSCollectionView creates all of the item views up front,
and doesn't lazily create them or destroy them. So, there really are
5000+ subviews. You should take a look at the collection view's subviews
to see.
-- Joe Ranieri
_______________________________________________
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