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: Mysterious nulls in NSScriptCommand



On Nov 6, 2007, at 12:43 PM, Christiaan Hofman wrote:

It's very simple: the direct parameter of the command receives the command. In the first case, this is a medium. As it implements it's own specialized handler, that handler is called. In the second case, it is an array. The array does not implement a specialized handler, so the generic handler is called (performDefaultImplementation). The tell block here is not relevant (apart from giving a context for the medium and the shelf) because you have supplied an explicit direct parameter (otherwise the subject of the tell block would be implicitly substituted).

I advice you to carefully read the documentation about script command handlers.

You're right, of course, on all counts. This is what I discovered upon experimentation and not a little poring over the documentation. Even so, I would think the object being sent a tell would be extractable from the command somehow.


Unfortunately, my problem (which seems to be one shared by many application developers) is not ignoring the documentation, but the impenetrable nature of the documentation itself. I definitely a think a rewrite is in order, or maybe there's a book in there for someone.

That said, I thank all of you for your help and your tolerance. This mailing list has proven to be an invaluable resource.

Mike Lee, Major-domo
Delicious Monster Software, LLC

_______________________________________________
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: 
 >Mysterious nulls in NSScriptCommand (From: Major Domo <email@hidden>)
 >Re: Mysterious nulls in NSScriptCommand (From: Daniel Jalkut <email@hidden>)
 >Re: Mysterious nulls in NSScriptCommand (From: Major Domo <email@hidden>)
 >Re: Mysterious nulls in NSScriptCommand (From: Christiaan Hofman <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.