NSTextView offset of text at top of view
NSTextView offset of text at top of view
- Subject: NSTextView offset of text at top of view
- From: Steve Palmer <email@hidden>
- Date: Sun, 21 Mar 2004 15:44:14 -0800
This one has me baffled and I've tried experimenting and searching the
archives to no avail, so I wonder if anybody on this list could help.
Given an NSTextView that has some text, I want to get the offset in the
string in the textview which appears at the top of the view. The reason
why is that I want to simulate paging down through the text in the
textview using the spacebar and if the textview is at the last page, I
want to detect that so I can load the textview with another message
instead. So specifically I was looking for something like [NSText
visibleRange] but that doesn't exist.
Any suggestions?
_______________________________________________
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.