Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: carbon events in MLTE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: carbon events in MLTE



John,

We are in the process of finishing a QA for MLTE.
It will contain examples on how to use Carbon events in MLTE and other
questions we've been getting from developers.
We'll update the PDF documentation later on of course.
TXNSetTXNObjectControls is actually described in the documentation, you'll
find MLTE doc here:
http://developer.apple.com/techpubs/macosx/Carbon/text/MultilingualTextEngin
e/Multilingual_Text_Engine/index.html

Hope this helps,

X
on 6/29/01 7:36 AM, John Nestor at email@hidden wrote:

> From: John Nestor <email@hidden>
> Date: Thu Jun 28, 2001 08:17:43 PM US/Eastern
> To: Xavier Legros <email@hidden>
> Subject: Re: carbon events in MLTE
>
> Xavier,
>
> Have been wasting much time trying to get MLTE and Carbon Events to play
> nice.
> Haven't tried your code yet (sleep first) but look forward to tomorrow.
>
> Is this all documented somewhere? I've been all over the latest MLTE SDK
> (Nov 2000, I believe)
> and the headers without finding anything.
>
> This raises a couple more questions
>
> - TXNSetTXNObjectControls seems capable of a lot. Is there any
> documentation?
> - what other 'new' technologies require a magic key to unlock
> CarbonEvents support?
>
> Thanks for the code and to anyone who can illuminate the subject(s).
>
>
>
>
>> On Thursday, June 28, 2001, at 04:03 PM, Xavier Legros wrote:
>>
>>> Here is how to tell MLTE to use Carbon events in your app:
>>>
>>> // Declare the variables
>>> TXNControlTag controlTags[] = { kTXNUseCarbonEvents };
>>> TXNControlData controlData[1];
>>> TXNCarbonEventInfo carbonEventInfo;
>>> CFStringRef keys[] = { kTXNTextInputHandlerKey };
>>> EventTargetRef values[] =
>>> { GetWindowEventTarget( myWindowRef ) };
>>> // Initialize the TXNCarbonEventInfo data structure
>>> carbonEventInfo.useCarbonEvents = true;
>>> carbonEventInfo.filler = 0;
>>> carbonEventInfo.flags = kTXNNoAppleEventHandlersMask;
>>> carbonEventInfo.fDictionary =
>>> CFDictionaryCreate( kCFAllocatorDefault,
>>> (const void **)&keys,
>>> (const void **)&values,
>>> 1,
>>> &kCFCopyStringDictionaryKeyCallBacks,
>>> NULL );
>>>
>>> controlData[0].uValue = (UInt32)&carbonEventInfo;
>>> // Tell MLTE to install its handlers
>>> status = TXNSetTXNObjectControls(
>>> theMLTEObject,
>>> false,
>>> sizeof( controlTags ) / sizeof( TXNControlTag ),
>>> controlTags,
>>> controlData );
>>>
>>> // Release the dictionary
>>> CFRelease( carbonEventInfo.fDictionary );
> _______________________________________________
> carbon-development mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/carbon-development


References: 
 >Fwd: carbon events in MLTE (From: John Nestor <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.