Revision: 4970
http://skim-app.svn.sourceforge.net/skim-app/?rev=4970&view=rev
Author: hofman
Date: 2008-11-18 19:02:11 +0000 (Tue, 18 Nov 2008)
Log Message:
-----------
Add Ink icon to spotlight importer, code support
Modified Paths:
--------------
trunk/QuickLook-Skim/GeneratePreviewForURL.m
trunk/QuickLook-Skim/SKQLConverter.m
Modified: trunk/QuickLook-Skim/GeneratePreviewForURL.m
===================================================================
--- trunk/QuickLook-Skim/GeneratePreviewForURL.m 2008-11-18 18:58:52 UTC
(rev 4969)
+++ trunk/QuickLook-Skim/GeneratePreviewForURL.m 2008-11-18 19:02:11 UTC
(rev 4970)
@@ -44,7 +44,7 @@
{
NSMutableDictionary *attachments = [NSMutableDictionary dictionary];
NSBundle *bundle = SKQLGetMainBundle();
- NSArray *allImageNames = [NSArray arrayWithObjects:@"FreeText", @"Note",
@"Circle", @"Square", @"Highlight", @"Underline", @"StrikeOut", @"Line", nil];
+ NSArray *allImageNames = [NSArray arrayWithObjects:@"FreeText", @"Note",
@"Circle", @"Square", @"Highlight", @"Underline", @"StrikeOut", @"Line",
@"Ink", nil];
NSString *imageName;
NSMutableDictionary *imgProps;
NSData *imgData;
Modified: trunk/QuickLook-Skim/SKQLConverter.m
===================================================================
--- trunk/QuickLook-Skim/SKQLConverter.m 2008-11-18 18:58:52 UTC (rev
4969)
+++ trunk/QuickLook-Skim/SKQLConverter.m 2008-11-18 19:02:11 UTC (rev
4970)
@@ -60,10 +60,10 @@
static NSAttributedString *imageAttachmentForType(NSString *type)
{
- NSImage *image = [[NSImage alloc]
initWithContentsOfFile:[SKQLGetMainBundle() pathForResource:@"Note"
ofType:@"png"]];
+ NSImage *image = [[NSImage alloc]
initWithContentsOfFile:[SKQLGetMainBundle() pathForResource:type
ofType:@"png"]];
NSFileWrapper *wrapper = [[NSFileWrapper alloc]
initRegularFileWithContents:[image TIFFRepresentation]];
[image release];
- [wrapper setPreferredFilename:[NSString stringWithFormat:@"[EMAIL
PROTECTED]", type]];
+ [wrapper setPreferredFilename:[type
stringByAppendingPathExtension:@"tiff"]];
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