• 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: NSTextView : Scroll top when bound-to string changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTextView : Scroll top when bound-to string changes (From: Jerry Krinock <email@hidden>)
 >Re: NSTextView : Scroll top when bound-to string changes (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSTextView : Scroll top when bound-to string changes
  • Next by Date: Re: auto malloc[27012]: attempted to remove unregistered weak referrer
  • Previous by thread: Re: NSTextView : Scroll top when bound-to string changes
  • Next by thread: Re: NSTextView : Scroll top when bound-to string changes
  • Index(es):
    • Date
    • Thread