Re: Adding multiple NSTextViews inside one NSScrollView
Re: Adding multiple NSTextViews inside one NSScrollView
- Subject: Re: Adding multiple NSTextViews inside one NSScrollView
- From: rajesh <email@hidden>
- Date: Mon, 16 Mar 2009 14:40:55 +0100
You can always synchronize the scrollers on textViews, I am sure there
is an example (by Apple) not sure if its for Text view or TableView
scrollers.
On Mar 16, 2009, at 2:17 PM, Ashish Tiwari wrote:
Don't do that? Keep them all in their own scroll views.
I need to do that I cant let each NSTextView has its own ScrollView.
The behavior I want is that when user scrolls the shared ScrollView
all 3
textviews should scroll simultaneously.
Also I will look into layout manager thing suggested by Kyle.
-----Original Message-----
From: Kyle Sluder [mailto:email@hidden]
Sent: Monday, March 16, 2009 6:34 PM
To: Ashish Tiwari
Cc: email@hidden
Subject: Re: Adding multiple NSTextViews inside one NSScrollView
On Mon, Mar 16, 2009 at 5:14 AM, Ashish Tiwari
<email@hidden> wrote:
I need to have 3 NSTextViews share same NSScrollView. The ScrollView
should
be able to show/scroll all contents of these 3 TextViews.
Don't do that? Keep them all in their own scroll views. If you
really want to have three separate text views inside one shared scroll
view, you should instead look at implementing a custom layout manager.
--Kyle Sluder
_______________________________________________
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
_______________________________________________
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