Role of application controller in document-based applications

0 views
Skip to first unread message

sg

unread,
Jul 14, 2008, 5:30:22 PM7/14/08
to Rucola
What is the role of the application controller, if any, in a document-
based application?

I am working through Hillegass' RaiseMan example using Rucola. I
create the application then run the document_model generator. I edit
the application_controller as recommended in the generated source.
When I run the app, the original main window still appears as well as
the shiny new document window.

I compared the setup for the same app in Xcode. There is no
controller object or window defined in MainMenu.nib. So I made a
backup of my Rucola version and then deleted the application
controller from apps/controller and removed the ApplicationController
object and Window from MainMenu.nib. When I run rake, I get an
application with only document windows and no main window that seems
to work just fine.

It looks to me like the application_controller serves no purpose in
this situation. Am I missing something?

Eloy Duran

unread,
Jul 16, 2008, 12:41:34 PM7/16/08
to ruc...@googlegroups.com
I guess that in a document based application, you should look at it as
the application delegate.
ApplicationController is basically just a name of a class.

You can safely remove the main window from the nib, as you did, for a
document based application.

Eloy

Reply all
Reply to author
Forward
0 new messages