Re: Tell Blocks Considered Harmful (was Re: open for access)
Re: Tell Blocks Considered Harmful (was Re: open for access)
- Subject: Re: Tell Blocks Considered Harmful (was Re: open for access)
- From: Philip Aker <email@hidden>
- Date: Sat, 20 Dec 2008 02:22:23 -0800
On 2008-12-16, at 18:48:06, Chris Page wrote:
Like I said before, I'm not sure because the AppleScript
component is involved and my components both delegate and
override events.
Are you using the CaptureComponent() API to override other
scripting components?
No.
CaptureComponent() is a means to delegate and override function
calls to components.
What do you mean by “delegate and override events”? How do you
accomplish that?
Either deal with them directly, "delegate" them from OSABridge to be
handled by the current component instance, or let the fall through in
a switch -- errAEEventNotHandled.
Are you using a send proc to intercept events? Are you installing
event/coercions handlers?
My components implement all of the selectors except for dialect
(useless for tradition shell languages) and the now unsupported
debugging ones. I'm currently not using a send proc [1] except for
monitoring purposes but do implement the kOSASelectCoerceFromDesc and
kOSASelectCoerceToDesc selectors. These last two are sine qua non
workhorses in my implementation.
[1] Just because I'm not currently using a send proc doesn't mean I
would want it to slide from the OSAComponent features. I believe other
component developers use it extensively.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden