• 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: Cocoa-dev Digest, Vol 2, Issue 960
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 2, Issue 960


  • Subject: Re: Cocoa-dev Digest, Vol 2, Issue 960
  • From: HORUS Technologies <email@hidden>
  • Date: Fri, 24 Jun 2005 00:04:13 +0200

I didn't try it so maybe I overlooked something, but why wouldn't you hide the scroller of each NSTextView, put these text views side by side in an enclosing NSView, and put this "container" NSView in a NSScrollView? then you should only have to take care of setting the height of the container view so that it can display all the text in the enclosing NSTextViews, provided that they are set to grow with the enclosing view. I mean, each time the content of one of the text view changes, you would get the new height of the text in this NSTextView and set the height of the container view accordingly if necessary.
Otherwise, maybe you can subclass NSScroller and override -trackKnob:, -trackScrollButons: and -hitPart: to send the message not only to the scroller's target but to the other views too; it could work because all the views are the same height.



Just a quick thought...

Olivier


Le 23 juin 2005, à 08:52, email@hidden a écrit :

1 would like to have several NSTextViews of the same height sharing
the same NSScroller, which would be placed outside of those nstextviews.

_______________________________________________ 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
  • Follow-Ups:
    • Re: Cocoa-dev Digest, Vol 2, Issue 960
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Is NSTableView/NSOutlineView the way to go?
  • Next by Date: Re: Cocoa-dev Digest, Vol 2, Issue 960
  • Previous by thread: Crash with CoreData/bindings when binding across relationship then resetting the controller?
  • Next by thread: Re: Cocoa-dev Digest, Vol 2, Issue 960
  • Index(es):
    • Date
    • Thread