• 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
resizing table view programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resizing table view programmatically


  • Subject: resizing table view programmatically
  • From: Daniel Child <email@hidden>
  • Date: Thu, 25 Jun 2009 11:47:20 -0400

I would like to resize a table view programmatically. I will be resizing based on the number of rows (which I know in advance), given a fixed row height which I set myself.

I tried resizing the window's contentView and that did not work. I know that a window, a scroll view, and a clip view are all involved, and sizing all of these manually seems like the wrong approach.

What is the easiest way to get the window and table to resize based on a calculated number of rows and fixed row height? Is there a simple approach that avoids resizing each individual view?

Thanks.
_______________________________________________

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: resizing table view programmatically
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: GC pros and cons
  • Next by Date: Re: IKImageBrowserView setSelectionIndex not selecting
  • Previous by thread: Re: NSArrayController's add: swaps entire content array when array is accessed via keypath
  • Next by thread: Re: resizing table view programmatically
  • Index(es):
    • Date
    • Thread