Public Member Functions | |
| (unsigned) | - addTypes:owner: [implementation] |
| (unsigned) | - declareTypes:owner: [implementation] |
| (BOOL) | - setData:forType: [implementation] |
| (BOOL) | - setPropertyList:forType: [implementation] |
| (void) | - setString:forType: [implementation] |
| (CPString) | - availableTypeFromArray: [implementation] |
| (CPArray) | - types [implementation] |
| (unsigned) | - changeCount [implementation] |
| (CPData) | - dataForType: [implementation] |
| (id) | - propertyListForType: [implementation] |
| (CPString) | - stringForType: [implementation] |
Static Public Member Functions | |
| (void) | + initialize [implementation] |
| (id) | + generalPasteboard [implementation] |
| (id) | + pasteboardWithName: [implementation] |
Definition at line 51 of file CPPasteboard.j.
| - (unsigned) addTypes: | (CPArray) | types | ||
| owner: | (id) | anOwner | ||
[implementation] |
Adds supported data types to the pasteboard
| types | the data types | |
| anOwner | the object that contains the data types |
Definition at line 125 of file CPPasteboard.j.
Checks the pasteboard's types for a match with the types listen in the specified array. The array should be ordered by the requestor's most preferred data type first.
| anArray | an array of requested types ordered by preference |
nil if no match was found Definition at line 209 of file CPPasteboard.j.
| - (unsigned) changeCount | [implementation] |
Returns the number of changes that have occurred to this pasteboard
Definition at line 226 of file CPPasteboard.j.
Returns the pasteboard data for the specified data type
| aType | the requested data type |
nil if the data doesn't exist Definition at line 236 of file CPPasteboard.j.
| - (unsigned) declareTypes: | (CPArray) | types | ||
| owner: | (id) | anOwner | ||
[implementation] |
Sets the data types that this pasteboard will contain.
| type | the data types it will support | |
| anOwner | the object that contains the the data |
Definition at line 152 of file CPPasteboard.j.
| + (id) generalPasteboard | [implementation] |
Returns a new instance of a pasteboard
Definition at line 77 of file CPPasteboard.j.
| + (void) initialize | [implementation] |
Definition at line 64 of file CPPasteboard.j.
| + (id) pasteboardWithName: | (CPString) | aName | [implementation] |
Returns a pasteboard with the specified name. If the pasteboard doesn't exist, it will be created.
| aName | the name of the pasteboard |
Definition at line 87 of file CPPasteboard.j.
| - (id) propertyListForType: | (CPString) | aType | [implementation] |
Returns the property list for the specified data type
| aType | the requested data type |
nil if the list was not found Definition at line 262 of file CPPasteboard.j.
Sets the pasteboard data for the specified type
| aData | the data | |
| aType | the data type being set |
YES if the data was successfully written to the pasteboard Definition at line 173 of file CPPasteboard.j.
| - (BOOL) setPropertyList: | (id) | aPropertyList | ||
| forType: | (CPString) | aType | ||
[implementation] |
Writes the specified property list as data for the specified type
| aPropertyList | the property list to write | |
| aType | the data type |
YES if the property list was successfully written to the pasteboard Definition at line 186 of file CPPasteboard.j.
Sets the specified string as data for the specified type
| aString | the string to write | |
| aType | the data type |
YES if the string was successfully written to the pasteboard Definition at line 197 of file CPPasteboard.j.
Returns the string for the specified data type
| aType | the requested data type |
nil if the string was not found Definition at line 277 of file CPPasteboard.j.
| - (CPArray) types | [implementation] |
Returns the pasteboards supported types
Definition at line 217 of file CPPasteboard.j.
1.5.8