Skip navigation.
 
mlRe: custom NSRulerView
FROM : Koen van der Drift
DATE : Thu Jan 30 19:33:00 2003

>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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlcustom NSRulerView Koen van der Drift Jan 30, 16:36
mlRe: custom NSRulerView Marco Binder Jan 30, 17:43
mlRe: custom NSRulerView Koen van der Drift Jan 30, 19:04
mlRe: custom NSRulerView Koen van der Drift Jan 30, 19:33
mlRe: custom NSRulerView and other related issues Michael Latta Apr 6, 23:18
mlRe: custom NSRulerView and other related issues Koen van der Drift Apr 7, 15:46