Revision: 4999
http://skim-app.svn.sourceforge.net/skim-app/?rev=4999&view=rev
Author: hofman
Date: 2008-11-26 22:08:23 +0000 (Wed, 26 Nov 2008)
Log Message:
-----------
use more detailed names for thumbnail attachments
Modified Paths:
--------------
trunk/PDFPage_SKExtensions.m
trunk/SKSnapshotWindowController.m
Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m 2008-11-26 22:01:13 UTC (rev 4998)
+++ trunk/PDFPage_SKExtensions.m 2008-11-26 22:08:23 UTC (rev 4999)
@@ -242,8 +242,9 @@
NSImage *image = [self thumbnailWithSize:size
forBox:kPDFDisplayBoxCropBox];
NSFileWrapper *wrapper = [[NSFileWrapper alloc]
initRegularFileWithContents:[image TIFFRepresentation]];
- [wrapper setFilename:@"page.tiff"];
- [wrapper setPreferredFilename:@"page.tiff"];
+ NSString *filename = [NSString stringWithFormat:@"page_%u.tiff", [self
pageIndex] + 1];
+ [wrapper setFilename:filename];
+ [wrapper setPreferredFilename:filename];
NSTextAttachment *attachment = [[NSTextAttachment alloc]
initWithFileWrapper:wrapper];
[wrapper release];
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2008-11-26 22:01:13 UTC (rev 4998)
+++ trunk/SKSnapshotWindowController.m 2008-11-26 22:08:23 UTC (rev 4999)
@@ -467,8 +467,9 @@
NSImage *image = [self thumbnailWithSize:size];
NSFileWrapper *wrapper = [[NSFileWrapper alloc]
initRegularFileWithContents:[image TIFFRepresentation]];
- [wrapper setFilename:@"page.tiff"];
- [wrapper setPreferredFilename:@"page.tiff"];
+ NSString *filename = [NSString stringWithFormat:@"snapshot_page_%u.tiff",
[self pageIndex] + 1];
+ [wrapper setFilename:filename];
+ [wrapper setPreferredFilename:filename];
NSTextAttachment *attachment = [[NSTextAttachment alloc]
initWithFileWrapper:wrapper];
[wrapper release];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit