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 ------------
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 mails | Author | Date |
|---|---|---|
| Alexey Zakhlestine | Dec 22, 20:12 | |
| Scott Stevenson | Dec 22, 20:22 | |
| Alexey Zakhlestine | Dec 22, 20:36 | |
| David Christensen | Dec 22, 20:36 | |
| Alexey Zakhlestine | Dec 22, 21:09 | |
| Alexey Zakhlestine | Dec 22, 22:14 | |
| Markus Hitter | Dec 23, 00:21 | |
| Timothy J.Wood | Dec 23, 02:24 |






Cocoa mail archive

