Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail-like grouping in NSTableView?




On 13 Feb '08, at 7:34 AM, Jens Miltner wrote:

Due to the amount of data that _may_ be displayed (not that it necessarily makes sense), I believe using an NSOutlineView is probably ruled out due to it's reliance on one object per row (I don't want to have to allocate 100,000+ objects).

NSOutlineView only needs objects for visible rows. The dataSource API allows the implementor to be extremely lazy about instantiating row data. There shouldn't be any problem with huge collections, as long as your data source is careful about how it works.


(I think the minimum number of row objects necessary to be in memory is one per currently-open "folder", plus one more for the row being drawn at that instant.)

—Jens_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Mail-like grouping in NSTableView? (From: Jens Miltner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.