Connecting NSTextStorage to a string
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