Re: Problem adding subview to NSScroller subclass
Re: Problem adding subview to NSScroller subclass
- Subject: Re: Problem adding subview to NSScroller subclass
- From: Lee Ann Rucker <email@hidden>
- Date: Sun, 08 Jul 2012 01:13:23 -0700 (PDT)
Yes, I had an info view below my NSCollectionView, and as that avoids horizontal scrollbar and only shows the vertical one when needed, it looked really weird for the scrollbar not to reach the bottom of the window. Shouldn't take too much tweaking to support a view that can be added and removed; it does work without the secondary view loaded.
----- Original Message -----
From: "Gideon King" <email@hidden>
To: "Lee Ann Rucker" <email@hidden>
Cc: "Cocoa-Dev List" <email@hidden>
Sent: Sunday, July 8, 2012 12:23:04 AM
Subject: Re: Problem adding subview to NSScroller subclass
Excellent, thanks Lee Ann.
From the look of the code, the accessory view will be shown all the time. I guess I have a UI decision to make as to whether to have just my zoom controls showing all the time and overlay scrollers (which may look a bit funny, but gives you maximum room), or using legacy scrollers, or moving the zoom controls somewhere else, or maybe making the view translucent until you mouse over it or something... I see that Keynote has an entire bottom bar dedicated to just a single zoom control which seems rather wasteful.
Regards
Gideon
On 08/07/2012, at 3:04 PM, Lee Ann Rucker <email@hidden> wrote:
> You've totally hit what I hit when Lion first came out, and it was my big WWDC question that year - took two Apple engineers digging in the code to figure it out; turned out to be a bug lurking since the NeXT days that only gets triggered when you add subviews to the scrollview and use overlay scrollers.
>
> This is what we wrote at WWDC - it works on 10.6 & up:
> ...
_______________________________________________
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