mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 14:11:56 +00:00
More pasteboard work
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17049 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
971194c387
commit
47bcd510bb
3 changed files with 6 additions and 12 deletions
|
@ -3,6 +3,8 @@
|
||||||
* Source/NSPasteboard.m: Documented all methods, fixed minor bugs
|
* Source/NSPasteboard.m: Documented all methods, fixed minor bugs
|
||||||
writing fiels to pastebaords, implemented ([+typesFilterableTo:])
|
writing fiels to pastebaords, implemented ([+typesFilterableTo:])
|
||||||
wrote (partial implementation ...) the unimplemented filters stuff.
|
wrote (partial implementation ...) the unimplemented filters stuff.
|
||||||
|
* Source/GSServicesManager.m: helpers for filters.
|
||||||
|
* Headers/AppKit/GSPasteboard.h: Removed unused methods.
|
||||||
|
|
||||||
2003-06-26 Ludovic Marcotte <ludovic@Sophos.ca>
|
2003-06-26 Ludovic Marcotte <ludovic@Sophos.ca>
|
||||||
|
|
||||||
|
|
|
@ -73,15 +73,7 @@
|
||||||
* and controlling general server behaviour.
|
* and controlling general server behaviour.
|
||||||
*/
|
*/
|
||||||
@protocol GSPasteboardSvr
|
@protocol GSPasteboardSvr
|
||||||
// Use this next to implement [+pasteboardByFilteringData:ofType:] and
|
|
||||||
// [+pasteboardByFilteringFile:] methods.
|
|
||||||
- (id<GSPasteboardObj>) pasteboardByFilteringData: (in bycopy NSData*)data
|
|
||||||
ofType: (in bycopy NSString*)type
|
|
||||||
isFile: (BOOL)flag;
|
|
||||||
- (id<GSPasteboardObj>) pasteboardByFilteringTypesInPasteboard: pb;
|
|
||||||
- (id<GSPasteboardObj>) pasteboardWithName: (in bycopy NSString*)name;
|
- (id<GSPasteboardObj>) pasteboardWithName: (in bycopy NSString*)name;
|
||||||
- (id<GSPasteboardObj>) pasteboardWithUniqueName;
|
|
||||||
- (bycopy NSArray*) typesFilterableTo: (in bycopy NSString*)type;
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -188,9 +188,9 @@
|
||||||
NSArray *sendTypes = [info objectForKey: @"NSSendTypes"];
|
NSArray *sendTypes = [info objectForKey: @"NSSendTypes"];
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
for (i = 0; i < [types count]; i++)
|
for (i = 0; i < [originalTypes count]; i++)
|
||||||
{
|
{
|
||||||
fromType = [types objectAtIndex: i];
|
fromType = [originalTypes objectAtIndex: i];
|
||||||
if ([sendTypes containsObject: fromType] == YES)
|
if ([sendTypes containsObject: fromType] == YES)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
@ -258,7 +258,7 @@
|
||||||
/*
|
/*
|
||||||
* Now get the service provider to do the job.
|
* Now get the service provider to do the job.
|
||||||
*/
|
*/
|
||||||
GSPerformService(filterName, tmp, YES)
|
GSPerformService(filterName, tmp, YES);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Finally, make it available.
|
* Finally, make it available.
|
||||||
|
@ -551,7 +551,7 @@ static NSMapTable *mimeMap = NULL;
|
||||||
{
|
{
|
||||||
id<GSPasteboardObj> anObj;
|
id<GSPasteboardObj> anObj;
|
||||||
|
|
||||||
anObj = [[self _pbs] pasteboardWithUniqueName];
|
anObj = [[self _pbs] pasteboardWithName: nil];
|
||||||
if (anObj)
|
if (anObj)
|
||||||
{
|
{
|
||||||
NSString *aName;
|
NSString *aName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue