need advice on subclassing NSScrollVIew

2009-03-19 Thread John Reppy
I'm building a viewer for event logs that needs to support a wide range of scales (say from seconds/inch to nanoseconds/inch). I've got a custom subclass of NSView for displaying this information, which I want to embed in an NSScrollView. The problem that I'm faced with is that the floatin

Re: need advice on subclassing NSScrollVIew

2009-03-20 Thread John Reppy
On Mar 20, 2009, at 1:04 AM, Graham Cox wrote: Double's are not going to help. The drawing coordinates are floats. Even if you could persuade NSScrollView to position your view to double precision, it will get truncated to single precision for display. You'd have to rewrite all of Quartz