Re: NSCollectionView problems
Re: NSCollectionView problems
- Subject: Re: NSCollectionView problems
- From: Markus Spoettl <email@hidden>
- Date: Fri, 23 May 2008 23:06:18 -0700
Hello again,
On May 23, 2008, at 1:20 PM, Markus Spoettl wrote:
I have an NSCollectionView set up with bindings to visualize an
NSMutableArray. When I call arrayController:setContent: the view
(which initially doesn't have a content assigned) displays the
items. So far so good. The problems are these:
If there are two many items for one page to display, the vertical
scroller appears. However, it's not the correct size. It's displayed
as if all items would fit into the view (all but an imaginary 10
pixel row). It doesn't get the correct size until after the view is
resized. Is there some way to force the view to recalculate it's
scroll bar sizes? Or could this be caused by how the content is
assigned (I'm using an array controller)?
The second problem is when the view is resized (due to window
resizing or any other reason). When the collection view is scrolled
down with some item in the middle of the collection selected (so the
scrollbar is not on it's topmost position), the resize causes the
collection display to jump to the first item row. This problem can
be observed in the Apple supplied IconCollection demo. Is there a
way to prevent that?
For those interested, both issues go away if "Automatically Hide
Scrollers" is switched OFF for the enclosing scroll view. I had
scrollers switched off by default for esthetic reasons. Apparently
NSCollectionView can't handle that case properly.
Does anyone know is this a known issue? If not I'd be glad to file a
report.
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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