discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScrollView does not scroll


From: Fred Kiefer
Subject: Re: NSScrollView does not scroll
Date: Sat, 08 Nov 2008 21:00:16 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20080922)

Andreas Höschler wrote:
> I am setting up a scrollview sublcass as follows:
> 
> - (id)initWithFrame:(NSRect)frame
> {
>    self = [super initWithFrame:frame];
>    [self setHasVerticalScroller:YES];
>    NSSize  contentSize = [self contentSize];
>    NSView *view = [[TimeTableView alloc] initWithFrame:NSMakeRect(0, 0,
> contentSize.width, 2000)];
>    [self setDocumentView:view];
>    [view setAutoresizingMask:NSViewWidthSizable];
>    [view release];
>    return self;
> }
> 
> @end
> 
> TimeTableView is a sublcass of NSView. I get the vertical scroller, but
> the documentView does not scroll when I drag the knob of the scroller
> with the mouse. It does however scroll when turning the scrollview!? The
> above code works just fine on MacOSX 10.2 and MacoSX 10.5. Is this a
> small bug in GNUstep or am I missing something?
> 

Most likely the bug is somewhere else in your application. Could you
please provide a full working code that we could test with? The code
above should work with GNUstep but as you left out most of what is
needed to get it running there would be too much effort needed to prove
that.

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]