need advice on subclassing NSScrollVIew
need advice on subclassing NSScrollVIew
- Subject: need advice on subclassing NSScrollVIew
- From: John Reppy <email@hidden>
- Date: Thu, 19 Mar 2009 15:39:44 -0500
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
floating-point
coordinates used by Cocoa do not have enough precision at full
magnification.
I'm guessing that the best solution is to subclass NSScrollView to
track the
visible rectangle's origin using doubles, but I'm not sure which
NSScrollView
methods I should be overriding. Also, do I need to override
NSClipView too?
Any pointers or suggestions would be appreciated.
Thanks in advance.
- John
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden