Re: Efficient Updating of Thousands of NSManagedObject Relationships
Re: Efficient Updating of Thousands of NSManagedObject Relationships
- Subject: Re: Efficient Updating of Thousands of NSManagedObject Relationships
- From: "I. Savant" <email@hidden>
- Date: Mon, 28 Jul 2008 16:35:40 -0400
> for (song in songs)
> NSManagedObject *song = ... (Fetch some from proper context)
> song.playlist = destinationList
> end
You could always ask the playlist for its
-mutableSetValueForKey:@"songs" ... then call -addObjects: and pass in
your songs array.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden