Re: NSString from Carbon by AppleEvent
Re: NSString from Carbon by AppleEvent
- Subject: Re: NSString from Carbon by AppleEvent
- From: Brian Webster <email@hidden>
- Date: Thu, 29 May 2003 22:58:32 -0500
On Thursday, May 29, 2003, at 03:07 PM,
email@hidden wrote:
3. Turn CFString into AEDesc and add as parameter to AppleEvent (this
is NOT working)
To make an AEDesc for a string, you must pass it as a raw array of
Unicode characters. So, you want to use CFStringGetCharacters() to put
the characters into a UniChar* and then create an AEDesc with type
typeUnicodeText, passing in the UniChar* as the descriptor's data.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.