In the latest set of responses to my query "Building an MVC based App for Mac 
OS X - NOT iOS"

The question of - am I building a "Document Based App"?  

After reading the Apple Document "Designing a Document-Based Application" I can 
say NO, I don't believe I am building a Document Based App.

I did run a test and created a NEW Project and checked the box "Create a 
Document-based App"
AND no Controller files (.h,.m) were automatically generated. 

Which leads to the general mechanical problem of how does one create Controller 
files (.h,.m)?
You get them auto created when working in iOS
BUT they are not auto created when working in Mac OS X.

Then the latest set of responses discuss which Controller to use once the 
"general mechanical how to create a controller" is answered.

Jens Writes ------
Anyway, to answer YT’s original question: To create new controllers you can use 
the New File… command and create a new OS X NSWindowController or 
NSViewController subclass. Xcode will put boilerplate code in the new files and 
even create .xibs. If you’re creating a document-based app you may want to 
create an NSDocument subclass, which is higher-level and abstracts the file I/O 
for you.
---------
AND I found that to actually use any controller one creates via NEW File... as 
a Controller
You have to disconnect the Auto generated Delegate from the Outlets Connection 
in the File's Owner Object in the IB Doc 
Please correct me if I am wrong about this point.

All of you discuss the utilities of the following Controllers. 
NSWindowController
NSViewController
UIViewController
NSController

From a nubee Apple App programming point of view they all appear to be similar 
WHICH MEANS I will have to read more about each to be able to make an 
intelligent choice that fits my intended purpose. 

more later...

YT







_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to