Re: External Editor / ODB Suite
Re: External Editor / ODB Suite
- Subject: Re: External Editor / ODB Suite
- From: George Warner <email@hidden>
- Date: Fri, 09 Jul 2004 09:00:38 -0700
On Fri, 9 Jul 2004 04:16:02 +0200, Allan Odgaard <email@hidden> wrote:
> On 9. Jul 2004, at 3:24, Nick Zitzmann wrote:
>>> I am trying to setup an external editor with Xcode, but even though
>>> the editor in question implements the ODB Suite from Bare Bones,
>>> Xcode will not send it the extra keyFileSender parameter [...]
>> Does the event your application receives include a keyAEPropData
>> parameter? If so, then it's likely that Xcode hid the keyFileSender
>> parameter inside the keyAEPropData parameter.
>
> It does not seem to, at least [event
> paramDescriptorForKeyword:keyAEPropData] returns nil.
>
> Below is a hex dump of the event I get by double clicking Info.plist,
> obtained using:
>
> AEDesc const* desc = [event aeDesc];
> std::vector<uint8_t> v(AEGetDescDataSize(desc));
> AEGetDescData(desc, &v[0], v.size());
> hex_dump(v.begin(), v.end());
>
You can use AEPrintDescToHandle to see what's in a descriptor:
#if 1 // Set this true to printf an Apple Event before you send it.
Handle strHdl;
anErr = AEPrintDescToHandle(&tAppleEvent,&strHdl);
if (noErr == anErr)
{
char nul = '\0';
PtrAndHand(&nul, strHdl,1);
printf("tAppleEvent=\"%s\".\n", *strHdl);
fflush(stdout);
DisposeHandle(strHdl);
}
#endif
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.