• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorry for another NEWBIE question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorry for another NEWBIE question


  • Subject: Re: Sorry for another NEWBIE question
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 19 Nov 2003 18:02:28 +0000

On 19 Nov 2003, at 17:28, Michael Becker wrote:

> 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?

It's easy to use multiple files. A good way is to use categories to
break your class up into pieces, and put the method implementations for
each category in a separate file.

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

References: 
 >Sorry for another NEWBIE question (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: NSNumber pointerValue
  • Next by Date: Re: Tunneling mouse events through windows?
  • Previous by thread: Sorry for another NEWBIE question
  • Next by thread: Re: Sorry for another NEWBIE question
  • Index(es):
    • Date
    • Thread