Re: Newbie question on listing out detailed items
Re: Newbie question on listing out detailed items
- Subject: Re: Newbie question on listing out detailed items
- From: Graham Cox <email@hidden>
- Date: Sat, 23 May 2009 13:05:52 +1000
On 23/05/2009, at 8:33 AM, Stamenkovic Florijan wrote:
NSTableView does not seem to be of much help. It accepts an NSCell
as means of rendering, but if I understand it correctly, an NSCell
can't contain subviews nor subcells, and is therefore of little use.
Any pointers to documentation on how to deal with this would be very
appreciated. Perhaps I am simply using the wrong terms to search.
I would have thought NSTableView would be suitable for this. You can
either break each row into separate columns and give each a specific
task, like the progress indicator, filename, etc, or you can design a
custom cell that lays out these elements however you wish.
It's true that constructing a view containing subviews for these
elements is generally easier than making a custom cell, and getting a
table view to adopt a view for each row is currently not directly
supported (though is possible). However in this case stacking the
views is straightforward so maybe building your own "table-like" class
for doing that would be the way forward.
--Graham
_______________________________________________
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