Core Data and Applescript
Core Data and Applescript
- Subject: Core Data and Applescript
- From: "Ian G. Gillespie" <email@hidden>
- Date: Mon, 1 Aug 2005 13:12:18 -0400
I am working on adding Applescript support to my Core Data app and I
am having some issues in regards to how Applescript creates objects
if they aren't inserted into a managed object context yet. For
example, my document has a to-many relationship with accounts and I
provided theses methods for AS:
-(NSArray *)accounts...
and
-(void)insertInAccounts:(Account *)account atIndex:(int)index...
and
-(void)insertInAccounts:(Account *)...
In both of the "insertIn..." methods I set the managed object context
of the incoming account.
The problem I am having is if I try to make an Applescript like "make
new account with properties {name:"Test"}" it assigns the value to
the key "name" before I have had a chance to insert the account into
my document's managed object context. Does anyone have any pointers
about how to get AS and Core Data to work together well.
Thanks,
Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden