NSCollectionView and initWithCoder
NSCollectionView and initWithCoder
- Subject: NSCollectionView and initWithCoder
- From: "gMail.com" <email@hidden>
- Date: Sun, 02 Aug 2009 02:02:50 +0200
- Thread-topic: NSCollectionView and initWithCoder
Hi,
I programmatically create a NSCollectionView and set my own prototype view
containing my own objects. These objects are subclasses of NSView containing
other subviews, for example I have a XXView object containing an NSTextView
defined by the variable mTextView.
Now when I get the several items in the NSCollectionView with
newItemForRepresentedObject, I quite see XXView containing the NSTextView
but the variable mTextView is NULL, so I cannot longer work with it.
My question is:
Since the prototype view and its subviews are created by initWithCoder, how
can I save/restore the variable mTextView? I should not create again the
NSTextView subview because it already exists within XXView. I just need to
relink the variable mTextView to the NSTextView view. How to do that?
_______________________________________________
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