Adding AppleScript support to a Core Data application
Adding AppleScript support to a Core Data application
- Subject: Adding AppleScript support to a Core Data application
- From: Andrew Madsen <email@hidden>
- Date: Sun, 11 Mar 2007 14:17:53 -0600
I'm trying to add AppleScript support to a Core Data application, and
am having trouble. This is my first time adding AppleScript support
to any app, so the whole thing has me confused. For one thing, I'm
not sure how to implement objectSpecifier methods. In the Sketch
example, the document has an array of graphics objects, and the
object specifier is an NSIndexSpecifier based on the index of the
graphics object in that array. In my app, the top level objects in a
document are in an NSArrayController, and as I understand it,
NSArrayController uses a set when used with NSManagedObjects, rather
than an array. So what is the best way to generate and return an
object specifier in an NSManagedObject subclass?
Anyway, I'm kind of rambling, and this is not the only thing that has
me confused. Some good example code that shows how to add
AppleScript support would be really helpful. I found a few posts by
Bill Cheeseman from 2005 saying that he had an example nearly ready
to publish, but I was unable to find it. Does anyone have any advice
regarding adding AppleScript support to a Core Data app?
Thanks,
Andrew Madsen
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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