[Q] What does the error tsmUnknownErr, -2519, mean?
[Q] What does the error tsmUnknownErr, -2519, mean?
- Subject: [Q] What does the error tsmUnknownErr, -2519, mean?
- From: Maurice Volaski <email@hidden>
- Date: Thu, 10 Nov 2005 02:15:10 -0500
- Thread-topic: [Q] What does the error tsmUnknownErr, -2519, mean?
I finally got around to working on this and am getting the error -2519 in
response to my kEventTextInputUpdateActiveInputArea event.
I am typing into TextEdit with my component active and I just have typed
some text and the insertion point is blinking. I type a trigger character
and attempt to select the first character just before the insertion point
and replace it with a different character.
The docs at
http://developer.apple.com/documentation/Carbon/reference/Text_Services_Mana
ger/tsm_refchap/chapter_1.5_section_1.html
say this error is " Any other error not listed in this table"
What does that mean?
>> this looks like an ideal candidate for the TSMDocumentAccess event
>> suite.
>>
>> If the TSMDocument (associated with the text field that currently
>> has focus) supports kTSMDocumentSupportDocumentAccessPropertyTag
>> (which it will for Cocoa), the input method can query part/all of
>> the text field using a CFString-like interface.
>>
>> So after identifying the offending text via some combo of:
>> kEventTSMDocumentAccessGetSelectedRange
>> kEventTSMDocumentAccessGetCharacters
>> kEventTSMDocumentAccessGetLength
>>
>> Once you've identified the offending text range, send an
>> UpdateActiveInputArea (auto-confirming) that specifies the
>> kEventParamTextInputSendReplaceRange param.
>>
>> Hope this helps,
>> Michael
>
> Perhaps you could try this and then you wouldn't have to feed
> backspaces into the event stream to accomplish your auto-replace.
>
> -eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden