Skip navigation.
 
mlRe: NSTableView limitations?
FROM : Alexey Zakhlestine
DATE : Wed Dec 22 20:36:19 2004

Scott Stevenson wrote:
>
> On Dec 22, 2004, at 11:12 AM, Alexey Zakhlestine wrote:
>

>> What is the limitation of NSTableView for columns and rows?
>>
>> Is it 2147483647? (I assume it uses a signed int32, because that's what
>> it returns for "numberOfRows:" method)
>>
>> or can it safely use values up to 4294967295?

>
>
> I think you'd run into problems with having 2 billion objects in your
> data store well before you had to worry about what NSTableView's limits
> are.


not necessarily..
let's assume the following:

//----- starting example -------------

- (int)numberOfRowsInTableView:(NSTableView *)aTableView
{
   return 2147483647;
}

- (id)tableView:(NSTableView *)aTableView
      objectValueForTableColumn:(NSTableColumn *)aTableColumn
      row:(int)rowIndex
{
   return @".";
}

//----- finishing example ------------

Related mailsAuthorDate
mlNSTableView limitations? Alexey Zakhlestine Dec 22, 20:12
mlRe: NSTableView limitations? Scott Stevenson Dec 22, 20:22
mlRe: NSTableView limitations? Alexey Zakhlestine Dec 22, 20:36
mlRe: NSTableView limitations? David Christensen Dec 22, 20:36
mlRe: NSTableView limitations? Alexey Zakhlestine Dec 22, 21:09
mlRe: NSTableView limitations? Alexey Zakhlestine Dec 22, 22:14
mlRe: NSTableView limitations? Markus Hitter Dec 23, 00:21
mlRe: NSTableView limitations? Timothy J.Wood Dec 23, 02:24