Re: Newbie needs help with tableview and bindings
Re: Newbie needs help with tableview and bindings
- Subject: Re: Newbie needs help with tableview and bindings
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 25 Nov 2005 00:58:36 -0800
On Nov 24, 2005, at 12:00 PM, Steve Gran wrote:
But how do I get to load the tableview with an array containing 10
items without the use of an "Add item" button (action). I'm really
hoping someone can provide a real step by step guide since I'm such
a beginner. Unfortunately mmalc's answer was no help at all. I'm
sure a real engineer would understand what he was talking about and
his examples on his website but I'm not even close to that.
There is nothing mystical about engineering. It's common sense. If
you want 10 items, you have to create them. And if you want to
display them, then you have to add them to whatever collection it is
you're displaying in the user interface. If this doesn't make sense,
then you should revisit the earlier chapters in Aaron's book -- and I
would also suggest that you avoid the use of bindings, since these
build on concepts that you have probably not yet absorbed and will
confuse you more than help. From your follow-up, it seems you have
the application working now? Nevertheless, as a learning exercise, I
would suggest re-implementing it without using bindings to reinforce
the concept of a data source and the division of labour between
model, view, and controller. You should also look carefully at where
you create your initial data set. If you're using a document-based
application, for example, there are different methods you can
override to do the initialisation, and only one is likely to be
appropriate...
mmalc
(A note on tone, since many seem to interpret my messages as being
condescending -- this should be read in a matter-of-fact English
accent, with *no* snideness implied.)
_______________________________________________
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