NSBrowser "smearing"
NSBrowser "smearing"
- Subject: NSBrowser "smearing"
- From: Andrew Farmer <email@hidden>
- Date: Fri, 14 Jan 2005 23:11:11 -0800
I haven't worked much with NSBrowsers before, so I could be doing
something wrong, but setting a simple NSBrowser I'm working with to be
user-resizable causes some seriously WEIRD scrolling behaviour -
everything seems to get blurred and shifted to the right one pixel or
so every time the scroll knob moves.
Turning off user-resizable columns makes it work perfectly, but that's
not what I want. Also, the first column works just fine. Go figure.
I've got my NSBrowser delegate attached. The .nib is unremarkable.
I've got a screenshot up at < http://tinypic.com/196pp0 >. Note in
particular the "bent" scrollbar knobs in the second and third columns.
Anyone know what I'm doing wrong here? Or is this a genuine bug?
<<< BrowserSource.m >>>
#import "BrowserSource.h" // yes, we have no instance variables
@implementation BrowserSource
- (int)browser:(NSBrowser *)sender
numberOfRowsInColumn:(int)column
{
return 64;
}
- (void)browser:(NSBrowser *)sender
willDisplayCell:(id)cell
atRow:(int)row
column:(int)column
{
[cell setTitle:[NSString stringWithFormat:@"%d:%d", column, row]];
[cell setLeaf:NO];
}
@end
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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