Re: Deleting CalTasks through an Array.
Re: Deleting CalTasks through an Array.
- Subject: Re: Deleting CalTasks through an Array.
- From: Mike Abdullah <email@hidden>
- Date: Wed, 30 Sep 2009 17:55:26 +0100
On 30 Sep 2009, at 17:32, Joshua Garnham wrote:
I have an Array of strings and want to remove CalTasks with titles
of any of the strings.
I know I can loop through a array with
for(NSString *title in array) {
}
and delete tasks with
removeTask:title error:nil
But it won't let me delete a CalTask object with the strings from
the Array instead it wants the actual CalTask object.How would I
delete a CalTask object by matching it's title to a string in an
array?
The API accepts CalTask objects. Logically then you need to fetch such
objects from the store using the APIs provided. i.e. -
tasksWithPredicate:
_______________________________________________
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