| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Den 3. nov.. 2007 kl. 05:29 skrev Philip Aker: On 2007-02-11, at 10:29, Ivan C Myrvold wrote:This is unknown territory for me. I tried to obtain the AEDesc desc, to plug it into your routine below:You're getting big endian unicode text. Coerce it to typeUTF8Text and things might be better for a console printout.I am not sure how to do that, but isn't there an easy way to make this a proper NSString?The text is showing just fine when shown in an NSView, by the way, when using binding of the NSString variable. OSStatus err = AESendMessage(theAppleEventPtr, &reply, kAEWaitReply, kAEDefaultTimeout); NSAppleEventDescriptor *replyDescriptor = [[[NSAppleEventDescriptor alloc] initWithAEDescNoCopy:&reply] autorelease]; AEDesc desc = [replyDescriptor aeDesc]; Xcode reports error: invalid initializer Ivan SInt32 size = AEGetDescDataSize( &desc ); |
_______________________________________________ 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>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.