• 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: iOS multiple text colors in an editable text field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS multiple text colors in an editable text field


  • Subject: Re: iOS multiple text colors in an editable text field
  • From: Jayson Adams <email@hidden>
  • Date: Tue, 14 Dec 2010 22:12:11 -0800

On Dec 14, 2010, at 12:40 PM, Matt Neuburg wrote:

> On Sun, 12 Dec 2010 14:05:38 +1100, BareFeetWare <email@hidden> said:
>> 1. Apple Mail. If you reply to a messages containing multi-colored text, you can edit that text.
>>
>> So my question is, how do they do it?
>
> Okay, I see now that there's a UITextInput protocol allowing you to design your own widgets that interact with the text input system. So in theory you could do that, and draw with Core Text. Indeed, the docs suggest that you would do exactly that.
> ...
> Unfortunately they make reference to a non-existent example project called SimpleTextInput which, as has been pointed out here before, doesn't exist.
> ...
> This sort of thing makes me wonder whether the protocol is somehow insufficient to work as advertised. Otherwise, why would Apple withdraw the only example illustrating it? And why wouldn't they talk about it at WWDC? Still, this is clearly the direction to go. m.


The protocol, plus NSAttributedString, plus Core Text (plus some thought!) is definitely enough to roll your own multi-font text editor, with attachments even.  That's what we did for the iPad version of NoteBook.

Best,


__jayson

Circus Ponies NoteBook for iPad
The Best App for Taking Notes on iPad
www.circusponies.com/iPad




_______________________________________________

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: 
 >Re: iOS multiple text colors in an editable text field (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Core data - binding related problem in NSNumberFormatter and NSDatePicker
  • Next by Date: Re: Intercepting cocoa/quartz/opengl Draw command.
  • Previous by thread: Re: iOS multiple text colors in an editable text field
  • Next by thread: Getting nextKeyView to work
  • Index(es):
    • Date
    • Thread