API  1.0.0
CPPasteboard Class Reference

#import <CPPasteboard.h>

+ Inheritance diagram for CPPasteboard:

Instance Methods

(unsigned) - addTypes:owner:
 
(CPString- availableTypeFromArray:
 
(unsigned) - changeCount
 
(CPData- dataForType:
 
(unsigned) - declareTypes:owner:
 
(id) - propertyListForType:
 
(BOOL) - setData:forType:
 
(BOOL) - setPropertyList:forType:
 
(void) - setString:forType:
 
(CPString- stringForType:
 
(CPArray) - types
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray) - exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(id) - init
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(id) + generalPasteboard
 
(void) + initialize
 
(id) + pasteboardWithName:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Detailed Description

CPPasteBoard is the object responsible for cut/copy/paste and drag&drop operations.

Definition at line 2 of file CPPasteboard.h.

Method Documentation

◆ addTypes:owner:()

- (unsigned) addTypes: (CPArray)  types
owner: (id)  anOwner 
implementation

Adds supported data types to the pasteboard

Parameters
typesthe data types
anOwnerthe object that contains the data types
Returns
the pasteboard's change count

Definition at line 131 of file CPPasteboard.j.

◆ availableTypeFromArray:()

- (CPString) availableTypeFromArray: (CPArray)  anArray
implementation

Checks the pasteboard's types for a match with the types listed in the specified array. The array should be ordered by the requestor's most preferred data type first.

Parameters
anArrayan array of requested types ordered by preference
Returns
the highest match with the pasteboard's supported types or nil if no match was found

Definition at line 224 of file CPPasteboard.j.

◆ changeCount()

- (unsigned) changeCount
implementation

Returns the number of changes that have occurred to this pasteboard

Definition at line 241 of file CPPasteboard.j.

◆ dataForType:()

- (CPData) dataForType: (CPString aType
implementation

Returns the pasteboard data for the specified data type

Parameters
aTypethe requested data type
Returns
the requested data or nil if the data doesn't exist

Definition at line 251 of file CPPasteboard.j.

◆ declareTypes:owner:()

- (unsigned) declareTypes: (CPArray)  types
owner: (id)  anOwner 
implementation

Sets the data types that this pasteboard will contain.

Parameters
typethe data types it will support
anOwnerthe object that contains the the data
Returns
the pasteboard's change count

Definition at line 158 of file CPPasteboard.j.

◆ generalPasteboard()

+ (id) generalPasteboard
implementation

Returns a new instance of a pasteboard

Definition at line 83 of file CPPasteboard.j.

◆ initialize()

+ (void) initialize
implementation

Reimplemented from CPObject.

Definition at line 70 of file CPPasteboard.j.

◆ pasteboardWithName:()

+ (id) pasteboardWithName: (CPString aName
implementation

Returns a pasteboard with the specified name. If the pasteboard doesn't exist, it will be created.

Parameters
aNamethe name of the pasteboard
Returns
the requested pasteboard

Definition at line 93 of file CPPasteboard.j.

◆ propertyListForType:()

- (id) propertyListForType: (CPString aType
implementation

Returns the property list for the specified data type

Parameters
aTypethe requested data type
Returns
the property list or nil if the list was not found

Definition at line 277 of file CPPasteboard.j.

◆ setData:forType:()

- (BOOL) setData: (CPData aData
forType: (CPString aType 
implementation

Sets the pasteboard data for the specified type

Parameters
aDatathe data
aTypethe data type being set
Returns
YES if the data was successfully written to the pasteboard

Definition at line 181 of file CPPasteboard.j.

◆ setPropertyList:forType:()

- (BOOL) setPropertyList: (id)  aPropertyList
forType: (CPString aType 
implementation

Writes the specified property list as data for the specified type

Parameters
aPropertyListthe property list to write
aTypethe data type
Returns
YES if the property list was successfully written to the pasteboard

Definition at line 197 of file CPPasteboard.j.

◆ setString:forType:()

- (void) setString: (CPString aString
forType: (CPString aType 
implementation

Sets the specified string as data for the specified type

Parameters
aStringthe string to write
aTypethe data type
Returns
YES if the string was successfully written to the pasteboard

Definition at line 208 of file CPPasteboard.j.

◆ stringForType:()

- (CPString) stringForType: (CPString aType
implementation

Returns the string for the specified data type

Parameters
aTypethe requested data type
Returns
the string or nil if the string was not found

Definition at line 292 of file CPPasteboard.j.

◆ types()

- (CPArray) types
implementation

Returns the pasteboards supported types

Definition at line 232 of file CPPasteboard.j.


The documentation for this class was generated from the following files: