• 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
Adding multiple NSTextViews inside one NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding multiple NSTextViews inside one NSScrollView


  • Subject: Adding multiple NSTextViews inside one NSScrollView
  • From: "Ashish Tiwari" <email@hidden>
  • Date: Mon, 16 Mar 2009 14:44:41 +0530

Hi,

I need to have 3 NSTextViews share same NSScrollView. The ScrollView should
be able to show/scroll all contents of these 3 TextViews.

------------------------------------------------------------

|                              |                              |
||

|                              |                              |
||

|              Text1     |              Text2     |              Text3
||

|                              |                              |
||

|                              |                              |
||

------------------------------------------------------------

Currently I have done followings:

1.       Added 3 NSTextViews (without vertical/horizontal scrollers) as
subviews of CustomView.

2.       Set the CustomView as DocumentView of NSScrollView.



I am facing following problems:

1.       Many a times the ScrollView wont show up.

2.       If ScrollView is visible then it wont scroll to show all the
contents of largest NSTextView. ScrollView will only scroll enough to show
contents of smallest TextView.



Please guide me how to fix it, any pointer/link/sample code will be
appreciated.

Thanks in advance.

Ashish Tiwari



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Adding multiple NSTextViews inside one NSScrollView
      • From: "I. Savant" <email@hidden>
    • Re: Adding multiple NSTextViews inside one NSScrollView
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Messages between Threads
  • Next by Date: Re: Fast dictionary with integer keys?
  • Previous by thread: Re: MobileMe API for uploading photos
  • Next by thread: Re: Adding multiple NSTextViews inside one NSScrollView
  • Index(es):
    • Date
    • Thread