• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: custom NSRulerView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Error_from_debugger:_No_source_file_named ...
  • Next by Date: Re: copyWithZone and NSImageView subclass
  • Previous by thread: Re: custom NSRulerView
  • Next by thread: Problem with JCE
  • Index(es):
    • Date
    • Thread