• 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
Connecting NSTextStorage to a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Connecting NSTextStorage to a string


  • Subject: Connecting NSTextStorage to a string
  • From: Daryle Walker <email@hidden>
  • Date: Fri, 23 Dec 2016 22:16:08 -0500

The text controls on macOS use a NSTextStorage object to retain their text. That object is a extension of an attributed string. Let's say you use a NSString (or similar) in your document model. How should I get changes on one string to get mirrored on the other?

I think there are begin/end-editing flag methods on text controls, but how would I go the other way?

Sent from my iPhone
_______________________________________________

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: Connecting NSTextStorage to a string
      • From: Kyle Sluder <email@hidden>
    • Re: Connecting NSTextStorage to a string
      • From: Keary Suska <email@hidden>
  • Prev by Date: Custom NSCollectionViewLayout isn't causing scrollbars to appear
  • Next by Date: Re: Connecting NSTextStorage to a string
  • Previous by thread: Re: Custom NSCollectionViewLayout isn't causing scrollbars to appear
  • Next by thread: Re: Connecting NSTextStorage to a string
  • Index(es):
    • Date
    • Thread