• 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: How to open a new document/window...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to open a new document/window...


  • Subject: Re: How to open a new document/window...
  • From: Nathan Day <email@hidden>
  • Date: Sun, 23 Jun 2002 22:32:02 +0930

Is the sub-document really a document in it's own right, or is it just another window and window controller for the same document., in which case just create a subclass of NSWindowController that does what you want, a document represents something that can be opened and save.

On Sunday, June 23, 2002, at 03:26 AM, Jiva DeVoe wrote:

So I've been working through the various tutorials of the various books, but
none of them seem to be very clear on what the "acceptable" or "preferred"
method of doing this is. So I will ask here:

I have a document based application, where I already have a document up in a
window. Now this document has a subdocument that is encapsulated within the
main document, and I want to open a new window with this subdocument in it.
I have created a nib for the subdocument, and set up all the appropriate
stuff there, but I'm not sure what the appropriate way to open this
subdocument is. Any pointers? What I want to do is have like 2 methods for
opening this window, one of which takes the main document pointer as an
argument, and the second of which takes the main document pointer and a
pointer to the chosen subdocument for editing, ie: an "open this item" type
of situation. What methods are the "cocoa-way" for doing this?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to open a new document/window... (From: Jiva DeVoe <email@hidden>)

  • Prev by Date: Re: NSOutlineView recursive calling crashing app
  • Next by Date: Re: Escaping spaces in paths
  • Previous by thread: How to open a new document/window...
  • Next by thread: Class method not working. Why?
  • Index(es):
    • Date
    • Thread