Re: What is an id?
Re: What is an id?
- Subject: Re: What is an id?
- From: j o a r <email@hidden>
- Date: Thu, 22 May 2008 10:11:40 -0700
On May 22, 2008, at 10:05 AM, john darnell wrote:
The question is, what does the code want me returning as an id?
I tried to do a search in Cocoa Help on id and as you might imagine, I
got lots and lots of hits, none of which looked anywhere near what I
wanted for an explanation of what id is. So what is the framework
expecting me to return?
It expects you to return an object that will be used by the cells in
your table view to display their respective value.
The type of object to return would depend on the cell type used for
that particular column-row intersection. A string if you're using a
text cell, an image if you're using an image cell, and so on.
The reason for using "id" here is to allow you to use any type of
object value as the source of data for your cell to display.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden