Re: CFM-based AXObserver Callback causing grief
Re: CFM-based AXObserver Callback causing grief
- Subject: Re: CFM-based AXObserver Callback causing grief
- From: Matt Gough <email@hidden>
- Date: Mon, 24 Mar 2003 17:30:35 +0000
>
on 3/24/03 7:58 AM, Matt Gough at <email@hidden> wrote:
>
>
> In one of the builds of my app, I still use CFM (in CodeWarrior) as it has
>
> certain advantages during debugging/profiling that the MACH-O version
>
> doesn't have.
>
>
>
> I have gone to the trouble of using CFBundleGetFunctionPointerForName and
>
> CFBundleGetDataPointerForName diligently and all of the AX functions I am
>
> using work correctly.
>
>
>
> However, whenever my app is about to receive an observer notification it
>
> crashes.
>
>
The CFBundle API's will only make the glue so that your CFM code can call
>
the MachO framwork API's. When you register your CFM observer notification
>
routine you'll need to pass the address of MachO -> CFM glue that the MachO
>
accessibility code will need to call your CFM notification routine. See our
>
CFM_MachO_CFM sample to see how to generate the glue.
>
>
You can also email me directly if you need further assistance.
>
Worked a treat. Thanks guys
Matt Gough
P.S you might want to change the sample code to not use the word 'template'
for the glue array. Not very C++ friendly :)
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.