diff --git a/Source/NSPasteboard.m b/Source/NSPasteboard.m index ace10ce20..a37911348 100644 --- a/Source/NSPasteboard.m +++ b/Source/NSPasteboard.m @@ -551,7 +551,7 @@ static id the_server = nil; { d = [target dataForType: dataType oldCount: changeCount - mustBeCurrent: useHistory]; + mustBeCurrent: (useHistory == NO) ? YES : NO]; } NS_HANDLER { @@ -597,6 +597,11 @@ static id the_server = nil; provideDataForType:(NSString *)type {} +- (void)pasteboard:(NSPasteboard *)sender +provideDataForType:(NSString *)type + andVersion:(int)version +{} + - (void)pasteboardChangedOwner:(NSPasteboard *)sender {} @@ -604,6 +609,18 @@ provideDataForType:(NSString *)type @implementation NSPasteboard (GNUstepExtensions) +- (id)askOwner:(id)anObject toProvideDataForType:(NSString*)type +{ + [anObject pasteboard:self provideDataForType:type]; + return self; +} + +- (id)askOwner:(id)obj toProvideDataForType:(NSString*)type andVersion:(int)v +{ + [obj pasteboard:self provideDataForType:type andVersion:v]; + return self; +} + /* * Once the '[-setChangeCount:]' message has been sent to an NSPasteboard * the object will gain an extra GNUstep behaviour - when geting data