• 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: MVC paradigm: multiple controllers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MVC paradigm: multiple controllers?


  • Subject: Re: MVC paradigm: multiple controllers?
  • From: Keith Blount <email@hidden>
  • Date: Wed, 6 Oct 2004 11:25:01 -0700 (PDT)

Many thanks Scott and John for taking the time to
reply, much appreciated.

>Also, when your classes get long and unwieldy, don't
foget about
>categories! They are fantastic for breaking up very
long classes into
>manageble, bite-size chunks.

I can't believe I overlooked the obvious! I was
thinking in terms of breaking it down into different
classes, but different categories of one class that
can all access the same instance variables is exactly
what I need. All I need to do is create separate files
that are categories of the MyDocument class, one
category for the table view and another for the
outline view, and so on. Then of course I will just
use separate controllers for diffferent windows, such
as a preferences controller for the preferences
window. (Thanks John, too - I forgot that by sending
the object with a notification I could access its
instance variables, very helpful.)

Many thanks again for clearing this up; this makes
approaching the large task ahead of gluing all the
parts together that much easier.
Keith

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: cocoa/obj-c type daemon
  • Next by Date: Using outlets from NSView subclass
  • Previous by thread: Re: MVC paradigm: multiple controllers?
  • Next by thread: NSTextView crashes with web content
  • Index(es):
    • Date
    • Thread