Re: NSRulerMarker and dragging
Re: NSRulerMarker and dragging
- Subject: Re: NSRulerMarker and dragging
- From: James Dempsey <email@hidden>
- Date: Tue, 8 Dec 2009 13:27:44 -0800
Arved,
There is currently no API to do this.
Please submit an enhancement request through bugreporter.apple.com.
-James
On Oct 17, 2009, at 9:45 PM, Arved von Brasch wrote:
> Hello Cocoa List,
>
> My Googling reveals this question has been asked before, but no answer was given. Hopefully someone knows how to do this now.
>
> I have a vertical NSRulerView attached to an NSTextView. I have movable NSRulerMarkers and that's all working good. My only problem is that the NSRulerMarkers insist on displaying a tooltip with the current measurement values when the marker is being dragged. This is not appropriate in my application. Ideally, I would like to suppress these tooltips.
>
> I have tried intercepting various things in my NSRulerView subclass. These typically didn't work because the ruler view doesn't seem to be responsible for the generation of the tooltips. NSRulerMarker doesn't seem to have functionality to do this, and doesn't inherit from NSView either.
>
> Another way to manage this might be to provide a dynamic measurement unit. My markers are essentially pointers into the text, and really are indicating specific line numbers, like break points. Dynamic measurements would be necessary because the font of the TextView can be set by the user, and where the marker is pointing will then depend on the font size. There doesn't seem to be a way to do this either.
>
> Is there something I'm missing? Surely this is something someone has attempted before?
>
> Thanks in advance,
>
> Arved
> _______________________________________________
>
> 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
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
email@hidden
_______________________________________________
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