setViewControllers:forType: |
- ( BOOL ) setViewControllers: (NSArray *) controllers forType: (NSString *) dataType;
Writes the state dictionaries for the given controllers to the pasteboard with the given type. This method calls -stateDictionaryIgnoringContentState:NO on each controller and puts the resulting dictionaries into an array which it then writes to the pasteboard. Usually, the pasteboard type will be MOViewControllerPboardType, but in specialized situations a more specialized pasteboard type can be defined and used instead.
- controllers
- An array of the controllers to be written.
- dataType
- The pasteboard type to write the data as (the written data is the same regardless of the type).
viewControllersForType: |
- ( NSArray *) viewControllersForType: (NSString *) dataType;
Recreates the controllers for the state dictionaries on the pasteboard. This method calls +viewControllerWithStateDictionary:ignoringContentState: for each dictionarty in the array on the pasteboard to create corresponding new controller hierarchies. Usually, the pasteboard type will be MOViewControllerPboardType, but in specialized situations a more specialized pasteboard type can be defined and used instead. The data on the pasteboard should have been written with -setViewControllers:forType:
- dataType
- The pasteboard type to write the data as (the data format is expected to be the same regardless of the type).
(Last Updated 3/20/2005)