• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: External Editor / ODB Suite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: External Editor / ODB Suite
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Function Pop-Up and #if 0
  • Next by Date: Re: HeaderDoc 8.0 issue
  • Previous by thread: Re: External Editor / ODB Suite
  • Next by thread: Re: External Editor / ODB Suite
  • Index(es):
    • Date
    • Thread