• 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: Suggestions on text display problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestions on text display problem


  • Subject: Re: Suggestions on text display problem
  • From: Scott Thompson <email@hidden>
  • Date: Sun, 28 Mar 2004 20:13:56 -0600

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.


  • Follow-Ups:
    • Re: Suggestions on text display problem
      • From: Ryan Stevens <email@hidden>
References: 
 >Suggestions on text display problem (From: Scott Thompson <email@hidden>)
 >Re: Suggestions on text display problem (From: Ryan Stevens <email@hidden>)

  • Prev by Date: Re: SIGIO and AppKit main loop
  • Next by Date: Re: Custom TabViewItem Things
  • Previous by thread: Re: Suggestions on text display problem
  • Next by thread: Re: Suggestions on text display problem
  • Index(es):
    • Date
    • Thread