• 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
Question about NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about NSScrollView


  • Subject: Question about NSScrollView
  • From: Mario Kušnjer <email@hidden>
  • Date: Fri, 19 Feb 2010 09:10:52 +0100

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

JPEG image



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

  • Follow-Ups:
    • Re: Question about NSScrollView
      • From: Jack Carbaugh <email@hidden>
  • Prev by Date: NSForegroundColorAttributeName without AppKit
  • Next by Date: Re: NSForegroundColorAttributeName without AppKit
  • Previous by thread: Re: NSForegroundColorAttributeName without AppKit
  • Next by thread: Re: Question about NSScrollView
  • Index(es):
    • Date
    • Thread