• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data and Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data and Applescript
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: NSLayoutManager Background Layout Crash
  • Next by Date: Re: Failed to copy Resource Fork??
  • Previous by thread: Re: NSLayoutManager Background Layout Crash
  • Next by thread: Re: Core Data and Applescript
  • Index(es):
    • Date
    • Thread