Writing a non-NSDocument based multiple document window apps
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.