• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSRulerMarker and dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRulerMarker and dragging


  • Subject: NSRulerMarker and dragging
  • From: Arved von Brasch <email@hidden>
  • Date: Sun, 18 Oct 2009 15:45:07 +1100

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


  • Prev by Date: Re: correctly Controlling Garbage Collection
  • Next by Date: Modal sheet / dialog + thread == main app thread hangs ?
  • Previous by thread: Re: Using core data binary and string attributes with NSTextView
  • Next by thread: Modal sheet / dialog + thread == main app thread hangs ?
  • Index(es):
    • Date
    • Thread