Re: NSTextView : Scroll top when bound-to string changes
Re: NSTextView : Scroll top when bound-to string changes
- Subject: Re: NSTextView : Scroll top when bound-to string changes
- From: Kyle Sluder <email@hidden>
- Date: Fri, 20 Jan 2012 12:10:52 -0800
On Fri, Jan 20, 2012 at 11:22 AM, Jerry Krinock <email@hidden> wrote:
> Well, apparently this does not have a simple answer.
>
> I removed the binding from my text view and instead added an IBOutlet for it, so I can use setAttributedString:, followed by setScrollPoint:.
>
> Conclusion: Although it has some bindings available, NSTextView is like NSMenu and NSMenuItem in that the bindings and settings available are often insufficient to do what you need in a finished application. In these cases it is better to not use Cocoa bindings.
Concurred. NSTextView is very much tied to its model, NSTextStorage.
It's not really a good candidate for bindings.
--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