• 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: Scroller position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroller position


  • Subject: Re: Scroller position
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sun, 23 Jun 2002 21:18:44 +0100

I'm not actually removing anything but the text. It's in a NSTextView in a non-document-based application. Isn't there any way to do it without removing any View objects?
- Jeremy.

On Sunday, June 23, 2002, at 08:33 pm, Jason Harris wrote:

I just ran into this problem. Before you remove the original documentView
from the NSScrollView and replace it with the new view, do
[originalDocumentView setFrame: NSZeroRect];
[scrollView setDocumentView: nil];

Jason Harris


Jeremy Dronfield Tried to Tell Me:

I'm trying to manipulate the scroll position of an NSTextView. When a
new .rtf file loads into the View, replacing the previous contents (I'm
using the same view here, rather than separate documents), I want the
View to snap back to the top, regardless of where it was scrolled to
when the user finished reading the first text file. I don't seem to be
able to access NSScroller's setFloatValue method - NSScrollView doesn't
respond to it. Do I need to create a new TextView instance just to get
this effect? I need the equivalent of REALbasic's
"Field.ScrollPosition =" (It must be in the API somewhere, for REALbasic
to access it).

- Jeremy
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Scroller position
      • From: Donald Brown <email@hidden>
References: 
 >Re: Scroller position (From: Jason Harris <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Core Foundation & Cocoa
  • Previous by thread: Re: Scroller position
  • Next by thread: Re: Scroller position
  • Index(es):
    • Date
    • Thread