Re: custom NSRulerView
Re: custom NSRulerView
- Subject: Re: custom NSRulerView
- From: Koen van der Drift <email@hidden>
- Date: Thu, 30 Jan 2003 13:33:00 -0500
Again that didn't change the size, although I can see in the
debugger that the framesize has changed. >How/where should I call
this?
Ah, solved that one! No need to use setRulerViewClass. I just swap
the original ruler with myRuler:
NSScrollView *scroller = [myTextView enclosingScrollView];
[scroller setHasVerticalRuler:YES];
[scroller setRulersVisible:YES];
NSRulerView *ruler = [scroller verticalRulerView];
NSRect r = [ruler frame];
r.size.width = 50;
MyRulerView *myRuler = [[MyRulerView alloc] initWithFrame:r];
[scroller setVerticalRulerView:myRuler];
[myRuler:release];
- Koen.
_______________________________________________
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.