> Has anyone had any luck implementing a dynamic sdef using a plugin model? 
> Nothing fancy, targeting 10.5+, I haven't
> been able to locate any examples of this actually being done or documentation 
> on how to do it.
>
> The 10.5 scripting release notes 
> (http://developer.apple.com/ReleaseNotes/Cocoa/Foundation.html#Scripting) 
> make a
> few allusions to this support but the closest implementation I have found is 
> to use a static-sdef for the host application
> that has definitions for all the plugins it expects to load (a la 
> http://lists.apple.com/archives/Applescript-
> implementors/2006/Aug/msg00002.html)

I have it mostly working in my apps. The code that merges together the
plugin sdefs can be found here:

http://github.com/jessegrosjean/blocks/blob/54b6bccb2fd144c4618376de2e73245267fecb25/BExtensionRegistry.m

Then search for "handleGetSDEFEvent". It's been a while since I looked
over that code, but it seems to be working OK for my apps.

Jesse
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to