Re: NSScrollView : documentView stuck in the bottom-left corner ! (Solved)
Re: NSScrollView : documentView stuck in the bottom-left corner ! (Solved)
- Subject: Re: NSScrollView : documentView stuck in the bottom-left corner ! (Solved)
- From: Eric Morand <email@hidden>
- Date: Wed, 10 Aug 2005 20:06:52 +0200
OK,
Forget about it, I just forgot to subclass isFlipped on my custom
class so that it returns YES.
Eric.
Le 10 août 05 à 19:45, Eric Morand a écrit :
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
_______________________________________________
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