Re: Using Scrolling in a subclass of NSView
Re: Using Scrolling in a subclass of NSView
- Subject: Re: Using Scrolling in a subclass of NSView
- From: Stefan Jung <email@hidden>
- Date: Fri, 4 Jan 2002 14:06:43 +0100
Am Donnerstag den, 3. Januar 2002, um 18:06, schrieb Jirtme Paschoud:
-(void)mouseDown:(NSEvent *) theEvent{
NSPoint loc = [theEvent locationInWindow];
loc.x -= [self frame].origin.x;
loc.y -= [self frame].origin.y;
You want [self bounds].
[self scrollPoint:loc];
[self setNeedsDisplay:YES];
Stefan Jung