Re: Datasource for tableview and more
Re: Datasource for tableview and more
- Subject: Re: Datasource for tableview and more
- From: Jim Correia <email@hidden>
- Date: Mon, 3 Sep 2001 00:17:47 -0400
At 2:48 PM -0400 9/2/01, Brendan Younger wrote:
Yes, I did over-simplify. But let just say in my defense that what
you call hand-waiving is often best for beginners. When I was
learning (not more than a few months ago), I was completely confused
as to why one even needed the + and - signs.
I don't want to sound rude, but it sounds like you still don't understand.
Thinking of them as "creates-a-new-object" and
"implemented-by-an-existing-one" was the most coherent way (for me)
to understand their use. Then, later on, one comes across things
like [NSThread exit] and realizes that it's just short-hand for the
conceptual [[NSThread currentThread] exit].
But it isn't. Those are very different thing. The first one sends a
message to the class object. The second one sends a message to the
instance object returned by currentThread. If you substitute the
latter when you meant the former, the right thing is not going to
happen.
Sometimes pointing out "gotchas" and damaging misconceptions is very
helpful to the beginner, but in this particular case I didn't think
it was warranted.
The class vs instance issue is important and isn't hard to grasp IMO.
Reading the available documentation is a good way to start. Learning
it through a series of misconceptions, is not.
Jim