• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need recommendations for best way to build a custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Need recommendations for best way to build a custom view
      • From: Ken Tozier <email@hidden>
References: 
 >Need recommendations for best way to build a custom view (From: Ken Tozier <email@hidden>)

  • Prev by Date: Resizing NSCollectionViewItem's view to fit NSTextField
  • Next by Date: Re: Responding to view controller memory warnings (was Re: Outlets / IBOutlet declarations)
  • Previous by thread: Need recommendations for best way to build a custom view
  • Next by thread: Re: Need recommendations for best way to build a custom view
  • Index(es):
    • Date
    • Thread