Re: Need recommendations for best way to build a custom view
Re: Need recommendations for best way to build a custom view
- Subject: Re: Need recommendations for best way to build a custom view
- From: Kyle Sluder <email@hidden>
- Date: Thu, 19 Feb 2009 16:34:07 -0500
On Thu, Feb 19, 2009 at 4:17 PM, Ken Tozier <email@hidden> wrote:
> Seems simple enough but I can't use tables because columns are a single
> width and project names are much longer than page numbers. What I end up
> with are ridiculously long page number fields to display short numbers like
> 1, 2, 3, etc. I had a small bit of success, at least with respect to the way
> items were layed out, using custom NSCells, but this quickly gets mired in
> dozens of overrides and hit testing parts of the cell to make the subcells
> work.
Can you afford to target Leopard-only? If so, you can use full-width
cells for your project rows. Return the cell in your delegate's
-tableView:dataCellForTableColumn:row: method when nil is passed for
the tableColumn argument. You might also want to return YES for
-tableView:isGroupRow: for this row.
--Kyle Sluder
_______________________________________________
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