Back to Corkboard

CorkPboardInterpreter Argument Keys

Keys for arguments that may be passed to initWithPasteboard:arguments: (CorkPboardInterpreter) through its args parameter. More...

Variables

NSString *const CorkPboardInterpreterCheckingIfCanInitArgumentKey
 An NSNumber (boolean) describing whether or not a call to initWithPasteboard:arguments: (CorkPboardInterpreter) is being made to determine if the receiver can use the data on the pasteboard.
NSString *const CorkPboardInterpreterIsHistoryItemArgumentKey
 An NSNumber (boolean) describing whether or not an instance of CorkPboardInterpreter is being allocated for use in the clipboard history.

Detailed Description

Keys for arguments that may be passed to initWithPasteboard:arguments: (CorkPboardInterpreter) through its args parameter.


Variable Documentation

An NSNumber (boolean) describing whether or not a call to initWithPasteboard:arguments: (CorkPboardInterpreter) is being made to determine if the receiver can use the data on the pasteboard.

The default implementation of canInitWithPasteboard:arguments: (CorkPboardInterpreter) just calls through to initWithPasteboard:arguments: (CorkPboardInterpreter) and returns whether or not the initialization succeeded (i.e. whether an object or nil was returned.) If canInitWithPasteboard:arguments: (CorkPboardInterpreter) is the method calling the initializer, this argument will be set to an NSNumber representing the boolean value YES.

See also:
+ canInitWithPasteboard:arguments: (CorkPboardInterpreter)
Since:
CorkCore 1.1

An NSNumber (boolean) describing whether or not an instance of CorkPboardInterpreter is being allocated for use in the clipboard history.

If an interpreter instance is used in the clipboard history, its contents may be scaled when drawn. In such an event, if you add subviews to your interpreter instance's view, it is your responsibility to scale them as appropriate. The convertRectToHistoryItemView: method is provided as a convenience; it will transform a rectangle in the receiver's view's coordinate space to the coordinate space of the history item's view.

See also:
CorkGetHistoryItemSize()

- convertRectToHistoryItemView: (CorkPboardInterpreter)

@property CorkPboardInterpreter.isHistoryItem

Since:
CorkCore 1.1

CorkCore Framework Reference © 2008–2009 Ayluro, Inc. All rights reserved. Questions or comments? Contact us.