FROM : Keith Blount
DATE : Wed Oct 06 20:25:01 2004
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
DATE : Wed Oct 06 20:25:01 2004
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
| Related mails | Author | Date |
|---|---|---|
| Keith Blount | Oct 3, 01:42 | |
| J Tichenor | Oct 3, 07:19 | |
| Keith Blount | Oct 5, 21:51 | |
| J Tichenor | Oct 5, 22:11 | |
| Scott Stevenson | Oct 5, 23:23 | |
| Scott Stevenson | Oct 5, 23:31 | |
| Keith Blount | Oct 6, 20:25 |






Cocoa mail archive

