• 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
Use NSDocument as a variable of another NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use NSDocument as a variable of another NSDocument


  • Subject: Use NSDocument as a variable of another NSDocument
  • From: Jarod Wen <email@hidden>
  • Date: Mon, 18 Jan 2010 10:48:40 -0800

Hi Jedis,

Is it a proper design to use a NSDocument as a variable of another NSDocument?

I am now working on an application which generates some information from a movie. The information generated will be showed as a table, and the information in the table can be saved/opened. Multiple types of information are possible so for one movie there may be several tables.

I used the NSDocument architecture for the movie document, and I am a little bit confused about the hierarchy now: is it possible to set the table as NSDocument and use it as a variable as the movie document? i.e., if I use MovieDocument for the movie and TableDocument for the table, it is ok to use a TableDocument object as a variable of the MovieDocument? Or any better pattern for this?

Thanks in advance!

------
J.W.




_______________________________________________

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

  • Follow-Ups:
    • Re: Use NSDocument as a variable of another NSDocument
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: wait for sheet result
  • Next by Date: Keeping closed windows in the Window menu
  • Previous by thread: Re: function/library to pack javascript?
  • Next by thread: Re: Use NSDocument as a variable of another NSDocument
  • Index(es):
    • Date
    • Thread