Re: Documents & Controllers
Re: Documents & Controllers
- Subject: Re: Documents & Controllers
- From: Seth Willits <email@hidden>
- Date: Sun, 10 Aug 2003 19:34:26 -0700
On Sunday, August 10, 2003, at 07:21 PM, Andreas Mayer wrote:
completely working tabbed browsing,
By implementing tabbed browsing you made your life quite a bit more
complicated. :-)
In a simple document based application each window controller displays
only one document. But you are displaying one document for each tab
all in the same window. You will need to account for that in your
communication between the document controllers and the window
controllers.
That doesn't seem to be too difficult. It's no different than what I'm
already doing which surprisingly isn't that difficult at all :)
Since I have no data that I'm manipulating is it correct to have all
of the code in the FWWindowController class?
No. You do have at least the URL.
Nope. I do not maintain *any* data. The URL is contained in the WebView.
Or should I have created all of my outlets in the MyDocument class?
No. :)
You connect your outlets to the window controller. The window
controller then asks the document controller to do the work. The
document controller instructs the window controller to display the
updated document.
So then really I should have subclassed NSDocumentController? That
doesn't seem right. I thought document controllers were specifically
for creating and destroying documents. I've got no problem with that.
Since all I ever do is manipulate the interface, then it is correct for
all the code to be in the window controller as far as I can tell.
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"It's okay. We can't all have three digit IQ levels."
-- Seth Willits
------------------------------------------------------------------------
---
_______________________________________________
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.