Skip navigation.
 
mlRe: How many items can add into table view
FROM : Alastair Houghton
DATE : Mon Jan 21 16:01:19 2008

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

Related mailsAuthorDate
mlHow many items can add into table view Yu, Min Jan 21, 07:46
mlRe: How many items can add into table view Gregory Weston Jan 21, 14:23
mlRe: How many items can add into table view I. Savant Jan 21, 15:47
mlRe: How many items can add into table view Alastair Houghton Jan 21, 16:01
mlRe: How many items can add into table view mmalc crawford Jan 21, 16:04