• 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
Writing a non-NSDocument based multiple document window apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Writing a non-NSDocument based multiple document window apps


  • Subject: Writing a non-NSDocument based multiple document window apps
  • From: Steve Palmer <email@hidden>
  • Date: Sat, 13 Mar 2004 21:53:38 -0800

I have an application that started life as a non-NSDocument based Cocoa application. It has one main window in which all activity occurs and a single MainMenu.nib that includes the menu, the main window and some sheets. The application manipulates a SQL database.

Now I want to evolve this application so that I can have multiple occurrences of the main window, and also some secondary windows for editing individual data items. In other words, make it more document oriented. It seems that I have two approaches:

1. Make the application NSDocument based.
2. Fudge some NSDocument style behaviour with the help of NSWindowController, etc.

What would folks recommend? If option 1 is preferable, are there any documented steps to converting a non-NSDocument app to a NSDocument app? I appreciate there is more than just changing the main app base object from NSObject to NSDocument.

Thanks!
_______________________________________________
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.


  • Follow-Ups:
    • Re: Writing a non-NSDocument based multiple document window apps
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Cocoa/Foundation and CoreFoundation
  • Next by Date: storing default preferences
  • Previous by thread: Re: Cocoa/Foundation and CoreFoundation
  • Next by thread: Re: Writing a non-NSDocument based multiple document window apps
  • Index(es):
    • Date
    • Thread