RE: Sorry for another NEWBIE question
RE: Sorry for another NEWBIE question
- Subject: RE: Sorry for another NEWBIE question
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Wed, 19 Nov 2003 13:42:10 -0500
One way of dealing with this bloat is to divide the AppController
functionality into categories. The only drawback is that categories can't
have their own instance variables, so you have to declare them in the
"parent" controller's interface -- not that big a deal, really, since you
have total control over the parent.
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/5objc_l
anguage_summary/chapter_6_section_7.html
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Michael Becker
>
Sent: Wednesday, November 19, 2003 12:29 PM
>
To: email@hidden
>
Subject: Sorry for another NEWBIE question
>
>
>
Hi!
>
>
Sorry to bother you all with silly newbie questions, this one is
>
concerning programm style/techniques:
>
>
As my application develops, my AppController class files grow bigger
>
and bigger. Usually I would try to divide the appropriate stuff up into
>
appropriate files, but it seems as though common standard in Cocoa is
>
to use the main controller file for anything. For example:
>
AppController is the datasource and delegate for my TableView as well
>
as for my NSBrowser object.#
>
>
With all the tableview delegate methods and drag and drop methods and
>
nsbrowser delegate methods, AppController becomes more and more loaded
>
and confusing.
>
>
But when I consider using seperate files, it seems to me that the
>
communication makes things even more complicated.
>
>
What should I do? Put everything in the AppController or use as many
>
classes as possible?
>
>
Thank you.
>
>
Bye,
>
Michael
>
_______________________________________________
>
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.
_______________________________________________
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.