• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCollectionView subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Redraw Problem with Layer-Backed View in Scroll View
  • Next by Date: A coding pattern that does not work under Garbage Collection
  • Previous by thread: Re: Multiple NSArrayControllers bound to an NSObjectController
  • Next by thread: Re: NSCollectionView subclassing
  • Index(es):
    • Date
    • Thread