Re: NSRulerView custom labels
Re: NSRulerView custom labels
- Subject: Re: NSRulerView custom labels
- From: Joel Reymont <email@hidden>
- Date: Mon, 16 Feb 2009 06:28:13 -0800 (PST)
Richard,
Richard Bannister wrote:
> Folks
>
> I'm working on an app that will be using timestamps in a NSRulerView -
> in the format 0:01, 0:02, et al.
Have you seen this?
http://www.noodlesoft.com/blog/2008/10/05/displaying-line-numbers-with-nstextview/
I'm exploring using NSRulerView for labeling stock charts. I think it
should work, unless NSRulerView specifically checks to make sure the
scroll view is a text one.
The Noodle Soft example shows how you can draw horizontal text (line
numbers) on the vertical ruler. I think you can use that approach to
draw your timestamps. I will use it to draw dates and price levels.
Thanks, Joel
---
http://tinyco.de
_______________________________________________
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