Appigo Third Party Integration is provided via a set of convenience classes by Appigo, Inc. which allow third party iPhone apps to import data into Appigo iPhone apps via persistent UIPasteboard objects.
Importing Tasks into Appigo Todo:
// // Create a new task // AppigoTask *task = [[AppigoTask alloc] initWithName:@"My Task"]; // // Set any desired properties such as due date, priority, etc. // task.dueDate = [NSDate date]; // today // // Import the task into Todo // [AppigoPasteboard openTodoWithTask:task]; // // Release the task object for good measure // [task release];
// // Create a new project task // AppigoTask *projectTask = [[AppigoTask alloc] initWithName:@"My Project"]; // // Set the task type to project // [projectTask setType:AppigoTaskTypeProject withPropertyKeys:nil withPropertyValues:nil]; // // Create and add subtasks to the project // // Note: Alternatively, you can create an NSArray of AppigoTask objects and // set them as subtasks of the project task by setting the subtasks property // of the project. // AppigoTask *subtask = [[AppigoTask alloc] initWithName:@"Subtask #1"]; // ... set any desired subtask properties (not shown here) [projectTask addSubtask:subtask]; [subtask release]; subtask = [[AppigoTask alloc] initWithName:@"Subtask #2"]; [projectTask addSubtask:subtask]; [subtask release]; // // Import the task into Todo // [AppigoPasteboard openTodoWithTask:projectTask]; // // Release the project task object for good measure // [projectTask release];
Importing a basic note into Appigo Notebook:
// // Create a note // AppigoNote *note = [[AppigoNote alloc] initWithName:@"My Note Title"]; // // Set the text of the note // note.text = @"Hello world."; // // Import the note into Appigo Notebook. // [AppigoPasteboard openNotebookWithNote:note]; // // Release the note for good measure. [note release];