From 547e06350e18bae6640992e19737c8ef5c582e5e Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 11 Sep 1997 13:43:55 +0000 Subject: [PATCH] Added PasteboardCallback protocol for methods used to ask the pastboard object in a client to get info from its owner git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2415 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/PasteboardServer.h | 28 +++++++++++++++++--------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/Headers/gnustep/gui/PasteboardServer.h b/Headers/gnustep/gui/PasteboardServer.h index 63a90a53a..5a8c6e9da 100644 --- a/Headers/gnustep/gui/PasteboardServer.h +++ b/Headers/gnustep/gui/PasteboardServer.h @@ -46,23 +46,23 @@ * perform tasks for the local NSPasteboard objects. */ @protocol PasteboardObject -- (int) addTypes: (bycopy NSArray*)types +- (int) addTypes: (in bycopy NSArray*)types owner: (id)owner pasteboard: (NSPasteboard*)pb oldCount: (int)count; -- (NSString*) availableTypeFromArray: (bycopy NSArray*)types +- (NSString*) availableTypeFromArray: (in bycopy NSArray*)types changeCount: (int*)count; - (int) changeCount; -- (NSData*) dataForType: (NSString*)type +- (NSData*) dataForType: (in bycopy NSString*)type oldCount: (int)count mustBeCurrent: (BOOL)flag; -- (int) declareTypes: (bycopy NSArray*)types +- (int) declareTypes: (in bycopy NSArray*)types owner: (id)owner pasteboard: (NSPasteboard*)pb; - (NSString*) name; - (void) releaseGlobally; -- (BOOL) setData: (NSData*)data - forType: (NSString*)type +- (BOOL) setData: (in bycopy NSData*)data + forType: (in bycopy NSString*)type isFile: (BOOL)flag oldCount: (int)count; - (void) setHistory: (unsigned)length; @@ -76,14 +76,22 @@ @protocol PasteboardServer // Use this next to implement [+pasteboardByFilteringData:ofType:] and // [+pasteboardByFilteringFile:] methods. -- (id) pasteboardByFilteringData: (NSData*)data - ofType: (NSString*)type +- (id) pasteboardByFilteringData: (in bycopy NSData*)data + ofType: (in bycopy NSString*)type isFile: (BOOL)flag; - (id) pasteboardByFilteringTypesInPasteboard: pb; -- (id) pasteboardWithName: (NSString*)name; +- (id) pasteboardWithName: (in bycopy NSString*)name; - (id) pasteboardWithUniqueName; -- (bycopy NSArray*) typesFilterableTo: (NSString*)type; +- (bycopy NSArray*) typesFilterableTo: (in bycopy NSString*)type; @end +/* + * This protocol is used by the server to ask pasteboard clients to + * provide additional data. + */ +@protocol PasteboardCallback +- (id)askOwner:(id)obj toProvideDataForType:(NSString*)type; +- (id)askOwner:(id)obj toProvideDataForType:(NSString*)type andVersion:(int)v; +@end #endif // _GNUstep_H_PasteboardServer