NSRulerView sample?
NSRulerView sample?
- Subject: NSRulerView sample?
- From: Daniel Tapie <email@hidden>
- Date: Mon, 5 Apr 2004 22:52:31 +0200
Hi,
I'm currently fiddling with a custom view which is a subview of a
scrollview. I'd like to add rulers in order to display our own tick
marks and time information, so I tried subclassing NSRulerView and
building our own rulers.
However, it seems the drawRect method of NSRulerView always get its
visible rectangle and not its complete bounds (unlike our custom view
which is drawn completely and then scrolled automatically by the
scrollview). I mean the rectangle passed to drawRect only represents
the visible part of the ruler view, not the whole ruler view.
I didn't find any way to get either the scrolling position (in pixels)
or the bounds of the fullsized ruler view.
I'm not sure my question is clear enough to be understandable, but in
short, I'd like to see an example of an NSRulerView subclass that draws
a custom rulerView. I couldn't find any sample anywhere.
Thanks,
Daniel Tapie
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.