Re: Suggestions on text display problem
Re: Suggestions on text display problem
- Subject: Re: Suggestions on text display problem
- From: Ryan Stevens <email@hidden>
- Date: Mon, 29 Mar 2004 08:18:51 -0800
NSLayoutManager has a layoutManagerDidInvalidateLayout: delegate
method. You might be able to do what you want from there..?
On Mar 28, 2004, at 6:13 PM, Scott Thompson wrote:
On Mar 28, 2004, at 8:05 PM, Ryan Stevens wrote:
Grab the [textStorage string], make a new NSAttributedString with the
string and the proper attributes then toss it into your other
textview.
...maybe?
The tricky part is that I want to be able to insert text into either
view and have those changes reflected in the other. So... say you
want to add the word "Fred" into the middle of the text. You could
put the insertion point in the middle of the text in EITHER text view
and start typing. The changes would be reflected in the other view.
Plus, perhaps some of the attributes could be shown in both views so
that if you selected the word "Fred" that you had just typed, you
could change it to bold. In one view it might show up as Times-Bold
24 point while in the other view it would have locked down the font
attributes to always be Helvetica 12pt. In that case the word in the
other text view should end up being Helvetica-Bold 12 pt.
Does that make sense?
Scott
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.