Re: NSCollectionViewItem & Its View
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