• 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 and initWithCoder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: RE: Disabling Undo in Core Data
  • Next by Date: NSURLConnection performance on iPhone
  • Previous by thread: Re: IPhone Textview question
  • Next by thread: NSURLConnection performance on iPhone
  • Index(es):
    • Date
    • Thread