Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: When/Where does the text system create it's NSRulerMarkers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When/Where does the text system create it's NSRulerMarkers?




On Mar 31, 2006, at 3:02 PM, The Karl Adam wrote:

I'm creating my own custom NSRulerView and NSTextView subclasses.
Things have gone well so far, what I need now is to cancel out the
text system's standard ruler markers and to create my own once during
either layout or display. Do I subclass NSLayoutManager or
NSTextStorage to do this?


Depending on what you want to do, you could look at -[NSLayoutManager rulerMarkersForTextView:paragraphStyle:ruler:] or -[NSLayoutManager rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:].


-Doug

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >When/Where does the text system create it's NSRulerMarkers? (From: "The Karl Adam" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.