• 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
Re: NSCollectionViewItem & Its View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCollectionViewItem & Its View


  • Subject: Re: NSCollectionViewItem & Its View
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 5 Nov 2007 11:25:48 -0500

Doug:

> I think you will need to use -initWithCoder: for this.  My
> understanding is that any subclass used for a collection view item
> must conform to the NSCoding protocol.
> I don't think this is clearly documented anywhere, I got it from
> talking to an Apple engineer.  When a NSCollectionView replicates the
> prototype view defined in the nib for display in the collection view,
> it does so by re-reading that view from the nib.  It does this in
> order to properly fix up any connections and bindings that the view
> may have.  Therefore, your class's -initWithCoder: method is invoked,
> as opposed to - initWithFrame:.  Hope this helps.
>

  Gah! I completely overlooked that particular initialization vector.
It works like a charm, thanks!

--
I.S.
_______________________________________________

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

References: 
 >NSCollectionViewItem & Its View (From: "I. Savant" <email@hidden>)
 >Re: NSCollectionViewItem & Its View (From: "Doug Penny" <email@hidden>)

  • Prev by Date: [ANN] NSOperation/NSOperationQueue tutorial
  • Next by Date: Core Data reserved property names?
  • Previous by thread: Re: NSCollectionViewItem & Its View
  • Next by thread: Custom editable cell on NSOutlineView
  • Index(es):
    • Date
    • Thread