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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/dempsey%40apple.com > > This email sent to demp...@apple.com -------------------------------------------------- James Dempsey AppKit Engineering Apple demp...@apple.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com