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.
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 mails | Author | Date |
|---|---|---|
| Koen van der Drift | Jan 30, 16:36 | |
| Marco Binder | Jan 30, 17:43 | |
| Koen van der Drift | Jan 30, 19:04 | |
| Koen van der Drift | Jan 30, 19:33 | |
| Michael Latta | Apr 6, 23:18 | |
| Koen van der Drift | Apr 7, 15:46 |






Cocoa mail archive

