NSCollectionView subclassing
NSCollectionView subclassing
- Subject: NSCollectionView subclassing
- From: email@hidden
- Date: Fri, 9 Nov 2007 16:33:38 +0100
Hi list,
I am trying to subclass NSCollectionView using -
(NSCollectionViewItem *)newItemForRepresentedObject:(id)object.
The doc says in this method we have to set the view, representedObject
and layoutView for the new item. I assume layoutView is the leopard-
seeds name for collectionView. But I still don't understand how to set
it in NSCollectionViewItem because there is no setCollectionView
method. I also did [self setItemPrototype:newItem] and I get an
infinite loop.
Thanks.
_______________________________________________
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