Task Type Data

Appigo Todo stores corresponding task type data (phone numbers, addresses, email addresses, etc.) with a task. Todo also supports synchronizing this data with third party task management services via use of special identifiers in a task's note.

The AppigoTask class provides a convenience method (setType:withPropertyKeys:WithPropertyValues:) to simplify the process of specifying this task type data.

Task Type Data (keys and values) is used for the following task types:

If keys and values are specified on any other task type, it will be ignored.

Task Type Data Keys

The property keys are meant to specify label items such as mobile, home, url, etc. These labels are shown to the user on the left side of a button in a UIActionSheet when the user taps the task's action button.

Task Type Data Values

The property values must correspond to the specified property keys and are the values of the labels. They should be phone numbers, email addresses, street addresses, etc.

Example: Creating a Call a Contact Task

 AppigoTask *task = [[AppigoTask alloc] initWithName:@"Call Bob Smith"];
 task.dueDate = [NSDate date]; // today
 [task setType:AppigoTaskTypeCallContact
        withPropertyKeys:[NSArray arrayWithObjects:@"mobile", @"home", @"work", nil]
  withPropertyValues:[NSArray arrayWithObjects:@"555-555-1111", @"555-555-2222", @"555-555-3333", nil]];
 
 [AppigoPasteboard openTodoWithTask:task];
 [task release];
Copyright © 2009-2010 Appigo, Inc. All rights reserved.