Re: AppKit source available as reference?
Re: AppKit source available as reference?
- Subject: Re: AppKit source available as reference?
- From: "David P. Henderson" <email@hidden>
- Date: Thu, 28 Jun 2001 10:30:08 -0400
On Thursday, June 28, 2001, at 08:44 , Phillip Mills wrote:
>
On 6/27/01 10:06 PM, "Rob Rix" <email@hidden> wrote:
>
>
> Basically, I don't think it would be a particularly good idea, because
>
> the whole idea of objects is to get you to stop caring about how their
>
> implemented, and just use the interfaces.
>
>
There's a difference between the client of an object not needing to
>
"care" about implementation details and a programmer needing
>
information about the exact behavior (often unexpected) of a class or
>
method. I don't accept that the information hiding part of OOP is
>
about hiding it from *people*...at least not when they're in the role
>
of student.
>
I disagree. OOD/P is about hiding implementation details from all but
the designer/implementer. You don't need to know the details of an
object's implementation, but you do need to know what an object will do
for you. The programmer is as much a client of the object as another
object is. Explaining the behavior of an object is a function of the
object's documentation, not its implementation. If you can't determine
an object's expected behavior from the documentation, then the object
designer/implementer has violated the contract between himself and the
clients of his object. Since this is true of the Cocoa frameworks to a
large degree, your best bet to understanding an object's behavior is to
post to groups such as this.
Dave
--
Chaos Assembly Werks
"The proper office of a friend is to side with you when you are in the
wrong. Nearly anybody will side with you when you are in the right."
- Mark Twain