• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is an id?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: What is an id?
      • From: Jens Alfke <email@hidden>
References: 
 >What is an id? (From: "john darnell" <email@hidden>)

  • Prev by Date: Re: What is an id?
  • Next by Date: Re: What is an id?
  • Previous by thread: Re: What is an id?
  • Next by thread: Re: What is an id?
  • Index(es):
    • Date
    • Thread