Well I'll be damned. I finally found out how to fix this thing. Turns out it is 
trivial when you know about it :)


Simply do this in IB:


http://dl.getdropbox.com/u/496106/tableViewIBSetting.png


for the *table view* (not just the scroll view). Then it starts behaving 
properly, even when we resize quickly. Nice.


In case that linked image gets deleted some day, I was talking about selecting 
the table view, going to the ruler section of the Inspector in IB, and then 
check every red arrow that you can in the Autosizing section, making the table 
view resize with its outer scroll view (or clip view?)


----------------------------------------
> From: [email protected]
> To: [email protected]
> Date: Sun, 24 May 2009 13:03:01 +0000
> CC: [email protected]
> Subject: RE: NSScrollView, NSTableView and NSSplitView Glitch
>
>
> Thanks for the reply,
>
> Here is my sample project: 
> http://dl.getdropbox.com/u/496106/scrollViewSplitViewGlitch.zip
>
> I have added a simple data source to it that gives the table view 10 rows. 
> Just to emphasize that unchecking "show vertical scroller" is not really an 
> option for me because I indeed want the vertical scroller to appear when it 
> actually should!
>
> But yes you're right, overriding that hasVerticalScroller method does indeed 
> return YES when that vertical scrollbar is prematurely appearing. In the 
> sample project above you will find this subclass of NSScrollView, although by 
> default I have commented your method out.
>
> So you can more easily see the glitch, and to demonstrate that I want to do 
> this to get an "inspector" to the right, I have added a button that toggles 
> the "inspector".
>
> Any ideas?
>
> Thanks, U.
>
>
> ----------------------------------------
>> From: [email protected]
>> Date: Sat, 23 May 2009 20:20:26 -1000
>> Subject: Re: NSScrollView, NSTableView and NSSplitView Glitch
>> To: [email protected]
>> CC: [email protected]
>>
>> Hello,
>>
>> I would try creating a subclass of NSScrollView, and figure out under
>> what conditions the NSScrollView feels that it needs to display the
>> vertical scroller. Perhaps the solution is as simple as overriding
>> -hasVerticalScroller to always return NO. So in your NSScrollView
>> subclass, I would start off with:
>>
>> - (BOOL)hasVerticalScroller
>> {
>> BOOL result = [super hasVerticalScroller];
>> NSLog(@"%d");
>> return NO;
>> }
>>
>> and see if that A) solves your issue (I doubt it...) and B) if not,
>> hopefully that will print YES intermittently when the vertical
>> scroller is visible (then you can set a breakpoint when it returns
>> YES, etc...) Also, captain obvious is wondering: you did uncheck 'Show
>> Vertical Scroller' in IB, right?
>>
>> Oh, and could you supply your sample project?
>>
>> David
>
> _________________________________________________________________
> Invite your mail contacts to join your friends list with Windows Live Spaces. 
> It's easy!
> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us_______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/ulaibeekam%40hotmail.com
>
> This email sent to [email protected]

_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to