Adding multiple NSTextViews inside one NSScrollView
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