• 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: How many items can add into table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How many items can add into table view


  • Subject: Re: How many items can add into table view
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 21 Jan 2008 15:01:19 +0000

On 21 Jan 2008, at 13:23, Gregory Weston wrote:

2 billion or more. Since table views don't store data - only display it - the number of items is limited to the greatest value of NSInteger (in 10.5, int earlier).

In practice the limit is somewhat smaller, because (for 32-bit apps at least), co-ordinates are represented as 32-bit float values. As a result, you'll start to run out of precision well before your run out of range in a 32-bit int, which tends to produce interesting graphical behaviour.


64-bit apps raise these limits, but obviously the limit doesn't go away (and neither does the problem of it not being sensible to present that amount of information to the user at once).

To get around the co-ordinate limit, you can implement your own scrolling code, in which case the number of entries in your table would just be the number that fit on the screen (and you'd manage which entries those were with more code). A scrollable table view may not be the best user interface if this kind of thing is becoming a problem for you, though.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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


References: 
 >Re: How many items can add into table view (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: Delegates - I give up
  • Next by Date: Re: How many items can add into table view
  • Previous by thread: Re: How many items can add into table view
  • Next by thread: Re: How many items can add into table view
  • Index(es):
    • Date
    • Thread