Revision: 15754
http://sourceforge.net/p/skim-app/code/15754
Author: hofman
Date: 2025-11-03 17:06:47 +0000 (Mon, 03 Nov 2025)
Log Message:
-----------
use NSPasteboardType for PDF and TIFF
Modified Paths:
--------------
trunk/PDFPage_SKExtensions.m
trunk/SKNoteWindowController.m
Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m 2025-11-03 16:59:58 UTC (rev 15753)
+++ trunk/PDFPage_SKExtensions.m 2025-11-03 17:06:47 UTC (rev 15754)
@@ -349,7 +349,7 @@
- (id<NSPasteboardWriting>)filePromiseForPageIndexes:(NSIndexSet *)pageIndexes
{
if ([[self document] isLocked] == NO) {
- NSString *fileUTI = [[self document] allowsSaving] ? (__bridge
NSString *)kUTTypePDF : (__bridge NSString *)kUTTypeTIFF;
+ NSString *fileUTI = [[self document] allowsSaving] ?
NSPasteboardTypePDF : NSPasteboardTypeTIFF;
NSFilePromiseProvider *item = [[NSFilePromiseProvider alloc]
initWithFileType:fileUTI delegate:self];
if (pageIndexes)
[item setUserInfo:pageIndexes];
Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m 2025-11-03 16:59:58 UTC (rev 15753)
+++ trunk/SKNoteWindowController.m 2025-11-03 17:06:47 UTC (rev 15754)
@@ -403,7 +403,7 @@
- (id<NSPasteboardWriting>)draggedObjectForDragImageView {
NSImage *image = [note image];
if (image)
- return [[NSFilePromiseProvider alloc] initWithFileType:(__bridge
NSString *)kUTTypeTIFF delegate:self];
+ return [[NSFilePromiseProvider alloc]
initWithFileType:NSPasteboardTypeTIFF delegate:self];
else
return nil;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit