NSScrollView : documentView stuck in the bottom-left corner !
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