Re: Question about NSScrollView
Re: Question about NSScrollView
- Subject: Re: Question about NSScrollView
- From: Jack Carbaugh <email@hidden>
- Date: Fri, 19 Feb 2010 05:43:57 -0500
tell your NSScrollView to setAutoHidesScrollers:yes
This should hide the scrollbars until needed.
http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Classes/NSScrollView_Class/Reference/Reference.html
On Feb 19, 2010, at 3:10 AM, Mario Kušnjer wrote:
Hi all !
So I have a question on how to resolve a little issue I have with
NSScrollView.
I have created everything programmatically (a little exploration
task to learn and understand how to do stuff without IB).
I have an NSOutlineView enclosed in an NSScrollView (as recommended
by documentation).
All works good except for little thing. Since NSOutlineView is not
populated, content area is empty, but vertical scroller knob
is shown (horizontal not showed).
Question: Why ?
I googled for an answer and got some facts together but don't really
know how to get to the solution to rectify the issue.
Facts: Scroller in this situation is shown because NSOutlineView has
NSTableHeader shown (instantiated).
If I set NSOutlineView headerView to nil, it gets released and not
shown in the NSScrollView, and then there is no scroller knob.
But what if I want to have NSTableHeader ?
Seams to me that if the headerView is ON, NSScrollView makes wrong
calculation of how much is the content area big and
how much should it be shown.
I have been examining the documentation for NSScrollView and
NSClipView and found couple of methods that has something to do
regarding
that but I don't know to make a use of them.
If any one knows something which could point me to the solution it
will be much appreciated.
Thanks in advance. Bye.
P.S. example picture in attachment
<window.jpg>
Mario Kušnjer
email@hidden
+385957051982
mariokusnjer (at) Skype
_______________________________________________
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
_______________________________________________
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