• 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
NSScrollView : documentView stuck in the bottom-left corner !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView : documentView stuck in the bottom-left corner !


  • Subject: NSScrollView : documentView stuck in the bottom-left corner !
  • From: Eric Morand <email@hidden>
  • Date: Wed, 10 Aug 2005 19:45:19 +0200

Hi list !



I want to programatically create a scroll view and here what I'm using right now :

NSScrollView * scrollView = [[[NSScrollView alloc] init] autorelease];

[scrollView setDrawsBackground:NO];
[scrollView setHasVerticalScroller:YES];
[scrollView setDocumentView:lateralView];
[scrollView setAutoresizingMask:NSViewWidthSizable + NSViewHeightSizable];




lateralView is just a custom NSView that does nothing special (currently, it only fills itself in black for test purpose) but it is stuck in the bottom-left corner of the scroll view ! Very problematic and making my scroll view unusable.



What is the correct way to add a document view to an NSScrollView ? By the way, I don't want to subclass anything else that my custom class. Because standard NSScrollView is used in a lot of standard objects (NSTableView for instance) without subclassing and that it works perfectly. So there IS a solution to have it handle its document view correctly.



Thanks for your help,



Eric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSScrollView : documentView stuck in the bottom-left corner ! (Solved)
      • From: Eric Morand <email@hidden>
  • Prev by Date: Re: Collapsing the splitview and hiding the button?
  • Next by Date: Re: Question about Threading
  • Previous by thread: Re: Collapsing the splitview and hiding the button?
  • Next by thread: Re: NSScrollView : documentView stuck in the bottom-left corner ! (Solved)
  • Index(es):
    • Date
    • Thread