• 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: NSTextView and NSScroller confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView and NSScroller confusion


  • Subject: Re: NSTextView and NSScroller confusion
  • From: Jeremy Dronfield <email@hidden>
  • Date: Wed, 3 Jul 2002 17:48:55 +0100

I believe it works this way: when you add a TextView in IB, you get a TextView AND a ScrollView, the one embedded in the other. I noticed this when connecting outlets to NSTextViews and found I had to be careful not to attach them to the ScrollView by mistake (the blue outline changes if you move the cursor around in the View). You get the same thing with TableViews.

It depends what you're trying to do with the scroller. NSView has some methods NSTextView can override, and NSText has -scrollRangeToVisible. Look on mamasam at the thread "Scroller Position" for some hints. (I started the thread, as I was having scroller problems at the time.)
- Jeremy.

On Wednesday, July 3, 2002, at 04:02 pm, Stephane Huaulme wrote:

I'm a little confused with these two: in IB when I add a NSTextView to a window, the Info window does show it as being a NSTextView, but if I look at the Classes tab in MainMenu.nib, it shows up as a NSScrollView.

In the documentation NSTextView does not inherit from NSScrollView. How do these two classes interact? How do I get access to the vertical scroller of a NSTextView?

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

References: 
 >NSTextView and NSScroller confusion (From: Stephane Huaulme <email@hidden>)

  • Prev by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Next by Date: Re: NSOutlineView's delegate is missing equivalent NSTableView delegate methods
  • Previous by thread: NSTextView and NSScroller confusion
  • Next by thread: extracting html from text file
  • Index(es):
    • Date
    • Thread