• 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: How to Create Auto-resize TableView or NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Create Auto-resize TableView or NSTextField?


  • Subject: Re: How to Create Auto-resize TableView or NSTextField?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 14 Jun 2010 13:18:27 -0600

On Jun 14, 2010, at 7:24 AM, John Gordon wrote:

> I've tried using the NSTextfield, but it hasn't been too successful.  I've
> also tried an NSTableView, but can't figure out how to force it to resize
> based on the number of rows in the table.
>
> What approach would you use

NSTableViews auto-resize themselves whenever the number of items inside them change, but IB always places them inside scroll views when you instantiate them there. So you can either take the table view out of the scroll view, or otherwise synchronize the table view and its scroll view's frame sizes whenever the table view is reloaded. The latter might be a better idea...

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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

References: 
 >How to Create Auto-resize TableView or NSTextField? (From: John Gordon <email@hidden>)

  • Prev by Date: Re: CocoaEcho
  • Next by Date: Re: Opening a file for writing text in /private/var/log
  • Previous by thread: How to Create Auto-resize TableView or NSTextField?
  • Next by thread: Re: How to Create Auto-resize TableView or NSTextField?
  • Index(es):
    • Date
    • Thread