Re: NSRulerMarker question
Re: NSRulerMarker question
- Subject: Re: NSRulerMarker question
- From: Ross Carter <email@hidden>
- Date: Thu, 22 Nov 2012 10:58:36 -0500
On Nov 21, 2012, at 8:22 PM, Graham Cox <email@hidden> wrote:
> The standard NSRulerMarker draws a black line in the client view as it is dragged. This comes 'for free' but I wonder how on earth it works. There is also no way to customise it that I can see. I'm wondering if this behaviour is interfering with view updates in my client view, but since it's not mentioned in the documentation I can only speculate. It seems to me NSRulerMarker is set up for its use in NSTextView and though the design seems to be fine for the more general case, in actual use the extra undocumented behaviours baked into it for use in a text view make it hard to use and not work as documented.
>
> So, simple question: how can I keep an associated line in my client view moving as I drag a ruler marker?
So the line should appear only while the user is dragging the marker? Maybe you should draw the line in a separate window rather than drawing in your client view. Just a thought.
_______________________________________________
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