On Nov 21, 2012, at 8:22 PM, Graham Cox <[email protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
