FROM : Evan Gross
DATE : Tue Aug 01 18:03:03 2006
On 7/31/06 10:20 PM, "David Dunham" <<email_removed>> wrote:
> If my view is the first resonder, the Insert button on the Character
> Palette is disabled. I've got a
> - (void) insertText: (NSString*)aString
> method.
> ------------
> David Dunham <email_removed> http://www.pensee.com/dunham/
> "No matter how far you have gone on a wrong road, turn back." -
> Turkish proverb
>
You probably have to conform to the NSTextInput protocol - *perhaps* not all
of it - not really sure. Problem is, the manner in which TSM (input methods,
character palette included) is "glued" to the various NSTextInput methods
is, well, pretty much undocumented.
It might take some playing around to find out just what needs to be
implemented. Or if we're lucky, Aki from Apple will see your message and
give you a definitive answer...
NOW, if you want to support "Insert with font", it's not that tough, but you
have to do a couple minor totally undocumented things (like adding a string
to indicate you conform to the TSM Glyph Protocol to the array you return
from - validAttributesForMarkedText), and be prepared to get an
NSAttributedString sent to your -insertText: method.
Hope that gets you started, anyway. There's more I can point you to if need
be.
Evan Gross
--
Evan Gross, President, Rainmaker Research Inc.
Developers of Macintosh and Windows Software
Spell Catcher for Mac OS and Windows
http://www.rainmakerinc.com/
DATE : Tue Aug 01 18:03:03 2006
On 7/31/06 10:20 PM, "David Dunham" <<email_removed>> wrote:
> If my view is the first resonder, the Insert button on the Character
> Palette is disabled. I've got a
> - (void) insertText: (NSString*)aString
> method.
> ------------
> David Dunham <email_removed> http://www.pensee.com/dunham/
> "No matter how far you have gone on a wrong road, turn back." -
> Turkish proverb
>
You probably have to conform to the NSTextInput protocol - *perhaps* not all
of it - not really sure. Problem is, the manner in which TSM (input methods,
character palette included) is "glued" to the various NSTextInput methods
is, well, pretty much undocumented.
It might take some playing around to find out just what needs to be
implemented. Or if we're lucky, Aki from Apple will see your message and
give you a definitive answer...
NOW, if you want to support "Insert with font", it's not that tough, but you
have to do a couple minor totally undocumented things (like adding a string
to indicate you conform to the TSM Glyph Protocol to the array you return
from - validAttributesForMarkedText), and be prepared to get an
NSAttributedString sent to your -insertText: method.
Hope that gets you started, anyway. There's more I can point you to if need
be.
Evan Gross
--
Evan Gross, President, Rainmaker Research Inc.
Developers of Macintosh and Windows Software
Spell Catcher for Mac OS and Windows
http://www.rainmakerinc.com/
| Related mails | Author | Date |
|---|---|---|
| David Dunham | Aug 1, 04:20 | |
| Jonathan Grynspan | Aug 1, 04:27 | |
| David Dunham | Aug 1, 05:17 | |
| Evan Gross | Aug 1, 18:03 |






Cocoa mail archive

