Re: setFrameSize called multiple times for a single size change?
Re: setFrameSize called multiple times for a single size change?
- Subject: Re: setFrameSize called multiple times for a single size change?
- From: Stuart Malin <email@hidden>
- Date: Tue, 21 Jul 2009 09:30:28 -0700
On Jul 21, 2009, at 9:17 AM, Stuart Malin wrote:
I now cache the last size given to the -setFrameSize method, and
don't perform my testing for row height changes if the width hasn't
changed, so I am no longer incurring that calculation cost.
Question 2 --> Is there a better way to configure the single
column's resizing mask to avoid the double call?
My bad -- I figured out an answer to the second question after
posting...
Since I have only one column, I now set the columnAutoresizingStyle of
the TableView to NSTableViewFirstColumnOnlyAutoresizingStyle
In the past, I had multiple columns, and had instead set this to -
NSTableViewSequentialColumnAutoresizingStyle
I guess that the TabbleView doesn't notice that there is only one
column, and so it was generating two resizing calls.
_______________________________________________
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