mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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
This commit is contained in:
parent
5215b68087
commit
115103154c
1 changed files with 18 additions and 10 deletions
|
@ -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<PasteboardObject>) pasteboardByFilteringData: (NSData*)data
|
||||
ofType: (NSString*)type
|
||||
- (id<PasteboardObject>) pasteboardByFilteringData: (in bycopy NSData*)data
|
||||
ofType: (in bycopy NSString*)type
|
||||
isFile: (BOOL)flag;
|
||||
- (id<PasteboardObject>) pasteboardByFilteringTypesInPasteboard: pb;
|
||||
- (id<PasteboardObject>) pasteboardWithName: (NSString*)name;
|
||||
- (id<PasteboardObject>) pasteboardWithName: (in bycopy NSString*)name;
|
||||
- (id<PasteboardObject>) 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
|
||||
|
|
Loading…
Reference in a new issue