• 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
NSRulerView sample?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRulerView sample?


  • Subject: NSRulerView sample?
  • From: Daniel Tapie <email@hidden>
  • Date: Mon, 5 Apr 2004 22:52:31 +0200

Hi,

I'm currently fiddling with a custom view which is a subview of a scrollview. I'd like to add rulers in order to display our own tick marks and time information, so I tried subclassing NSRulerView and building our own rulers.

However, it seems the drawRect method of NSRulerView always get its visible rectangle and not its complete bounds (unlike our custom view which is drawn completely and then scrolled automatically by the scrollview). I mean the rectangle passed to drawRect only represents the visible part of the ruler view, not the whole ruler view.

I didn't find any way to get either the scrolling position (in pixels) or the bounds of the fullsized ruler view.

I'm not sure my question is clear enough to be understandable, but in short, I'd like to see an example of an NSRulerView subclass that draws a custom rulerView. I couldn't find any sample anywhere.

Thanks,



Daniel Tapie
_______________________________________________
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: Cocoa App Package Question
  • Next by Date: Re: Cocoa App Package Question
  • Previous by thread: Re: NSQuickDrawView opacity troubles (solved)
  • Next by thread: Cocoa in Carbon sheets are app-modal?
  • Index(es):
    • Date
    • Thread