On 21 Oct 2008, at 5:40 am, josh hughes wrote:
Hi,
I need to alter the hashMarks of an NSRulerView so that the labels
increment from 1 rather than the default: 0. As I understand it,
this should be done by either subclassing NSRulerView and overriding
drawHashMarkAndLabelsInRect: or using a delegate.
Just call -setOriginOffset: with a suitable value to place the '1'
mark where you want it. Of course you're really placing the '0' mark,
but you can set it to some negative value as needed.
--Graham
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]