• 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: NSAppleEventDescriptor - getting a double (and other animals)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleEventDescriptor - getting a double (and other animals)


  • Subject: Re: NSAppleEventDescriptor - getting a double (and other animals)
  • From: has <email@hidden>
  • Date: Tue, 22 Jan 2008 17:59:09 +0000

Luke Evans wrote:

I wish to allow my scripting interface to accept 'any' for a
property.  I see that this is handled in Cocoa by the relevant method
being sent an object of type NSAppleEventDescriptor, and I have
implemented the fairly straightforward and obvious code to handle the
types string, int32 and boolean (these all being available on
NSAppleEventDescriptor itself).  Now, I need to implement handlers for
some other types (doubles, dates).

Best place for this sort of question is probably AppleScript- implementors:


	http://lists.apple.com/mailman/listinfo/applescript-implementors

I'm not familiar with the finer workings of Cocoa Scripting, so dunno if there's any way to make it convert NSAppleEventDescriptors to their Cocoa equivalents upon request. If there isn't, you might look into using objc-appscript (http://appscript.sourceforge.net/objc-appscript.html ) as its AEMCodecs class provides AEDesc<->Cocoa mappings for all common descriptor types; see the CallAppleScriptHander sample project for an example of use.

HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Carbon-Cocoa Integration: Linking issue
  • Next by Date: Re: Leopard - interaction with Spaces from own applications
  • Previous by thread: NSAppleEventDescriptor - getting a double (and other animals)
  • Next by thread: Document Modal option for NSPanel
  • Index(es):
    • Date
    • Thread