Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract text out of NSAppleEventDescriptor



On Nov 3, 2007, at 2:45 AM, Ivan C Myrvold wrote:

This is unknown territory for me. I tried to obtain the AEDesc desc, to plug it into your routine below:

OSStatus err = AESendMessage(theAppleEventPtr, &reply, kAEWaitReply, kAEDefaultTimeout);
NSAppleEventDescriptor *replyDescriptor = [[[NSAppleEventDescriptor alloc] initWithAEDescNoCopy:&reply] autorelease];

AEDesc desc = [replyDescriptor aeDesc];

Xcode reports error: invalid initializer

Read the header.  -[NSAppleEventDescriptor aeDesc] returns an AEDesc *, not an AEDesc.  (It's a pointer into the guts of the object, so *don't* try to hang on to it longer than the object!)

I don't believe you've ever said where this bogus reply is coming from.  If it's not from your code, then whose is it?  Because they should fix it.


--Chris Nebel
AppleScript Engineering

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden

References: 
 >Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>)
 >Re: Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>)
 >Re: Extract text out of NSAppleEventDescriptor (From: Philip Aker <email@hidden>)
 >Re: Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>)
 >Re: Extract text out of NSAppleEventDescriptor (From: Philip Aker <email@hidden>)
 >Re: Extract text out of NSAppleEventDescriptor (From: Ivan C Myrvold <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.