• 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
How to add markers to NSTextView's NSRulerView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to add markers to NSTextView's NSRulerView?


  • Subject: How to add markers to NSTextView's NSRulerView?
  • From: Keith Blount <email@hidden>
  • Date: Thu, 17 Mar 2005 07:24:10 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

Hello,

Deceptively complicated question... I want to add a
custom ruler marker to NSTextView's ruler, but am not
sure how to go about this. This is complicated by the
fact that my text view is one of two views that are
side-by-side subvviews of another custom view. I want
to add a marker to the ruler view that will be able to
slide along all the way from above one view (a custom
view) to the other (the text view).

I know how to alter the positions of the normal
markers above a text view (using paragraph style), but
this is different. It seems that the ruler view only
shows the markings relevant to the current first
responder, whereas I guess I need to add a marker that
would be controlled by the main superview that
contains the text view - and the superview never has
first responder status.

Does anybody have any ideas about how I might go about
this? (Obviously I have tried things like addMarker:
with no success.)

Many thanks for any suggestions,
Keith




__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
 _______________________________________________
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

  • Prev by Date: Re: Self-scheduling threading
  • Next by Date: display modal window once main window is visible
  • Previous by thread: Re: NSImage drawInRect:fromRect:
  • Next by thread: display modal window once main window is visible
  • Index(es):
    • Date
    • Thread