• 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: NSTableView within NSScrollView in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView within NSScrollView in code


  • Subject: Re: NSTableView within NSScrollView in code
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 10 Nov 2010 21:25:37 -0800

On Nov 10, 2010, at 14:09, Patrick Mau wrote:

> The scrollview resizes along with my custom view, which is fine.
> This triggers a resize of the NSClipView, which is the contentView of the scrollview.
>
> The documentView's frame is obviously not affected.
>
> So someone must tell the tableView that it should resize its colums in response
> to a scrollview frame change.

What am I missing, because the answer seems too easy? The table view won't resize automatically unless *its* 'autoresizingMask' tells it to do so, and you haven't set that. (You did set it for the scroll view, but that's a different view -- it's the table view's parent view's parent view.)

Note that a tableView doesn't resize its columns "in response to a scrollview frame change". It resizes its columns in response to a table view frame change, and *that* only happens automatically when the autoresizingMask is set appropriately.

> It's half a page of code and I'd just like to know whats happening
> behind the scenes here.

It's a pointless comment for me to make, I suppose, but I truly don't understand how such manual code tells you "what's happening behind the scenes".  If IB (in IB-constructed NIBs) is merely setting these properties for you, nothing is happening behind the scenes -- it's all out in front of the scenery -- and if IB is doing something behind the scenes, writing code using the public API isn't going to reveal what it is.


_______________________________________________

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: NSTableView within NSScrollView in code
      • From: Kyle Sluder <email@hidden>
References: 
 >NSTableView within NSScrollView in code (From: Patrick Mau <email@hidden>)
 >Re: NSTableView within NSScrollView in code (From: Kyle Sluder <email@hidden>)
 >Re: NSTableView within NSScrollView in code (From: Patrick Mau <email@hidden>)

  • Prev by Date: Moderator - Re: iPad 4.2 (deploy to 3.2.2) error
  • Next by Date: Re: Moderator - Re: iPad 4.2 (deploy to 3.2.2) error
  • Previous by thread: Re: NSTableView within NSScrollView in code
  • Next by thread: Re: NSTableView within NSScrollView in code
  • Index(es):
    • Date
    • Thread