Revision: 3249
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3249&view=rev
Author:   hofman
Date:     2007-11-24 10:07:12 -0800 (Sat, 24 Nov 2007)

Log Message:
-----------
Fix typos

Modified Paths:
--------------
    trunk/QuickLook-Skim/GeneratePreviewForURL.m
    trunk/QuickLook-Skim/GenerateThumbnailForURL.m

Modified: trunk/QuickLook-Skim/GeneratePreviewForURL.m
===================================================================
--- trunk/QuickLook-Skim/GeneratePreviewForURL.m        2007-11-24 17:26:34 UTC 
(rev 3248)
+++ trunk/QuickLook-Skim/GeneratePreviewForURL.m        2007-11-24 18:07:12 UTC 
(rev 3249)
@@ -104,7 +104,7 @@
                     NSString *type = [note objectForKey:@"type"];
                     NSString *contents = [note objectForKey:@"contents"];
                     NSString *text = [[note objectForKey:@"text"] string];
-                    NSString *color = [note objectForKey:@"color"];
+                    NSColor *color = [note objectForKey:@"color"];
                     unsigned int pageIndex = [[note objectForKey:@"pageIndex"] 
unsignedIntValue];
                     [htmlString appendFormat:@"<dt><img src=\"cid:%@.png\" 
style=\"background-color:#\" />%@ (page %i)</dt>", type, [color hexString], 
type, pageIndex+1];
                     [htmlString appendFormat:@"<dd><b>%@</b>", contents];

Modified: trunk/QuickLook-Skim/GenerateThumbnailForURL.m
===================================================================
--- trunk/QuickLook-Skim/GenerateThumbnailForURL.m      2007-11-24 17:26:34 UTC 
(rev 3248)
+++ trunk/QuickLook-Skim/GenerateThumbnailForURL.m      2007-11-24 18:07:12 UTC 
(rev 3249)
@@ -47,13 +47,13 @@
     
     NSAttributedString *attrString = nil;
     if (attrString == nil) {
-        if (imageAttachments == nil) {
+        if (imageAttachments == nil)
             imageAttachments = [[NSMutableDictionary alloc] init];
         NSBundle *bundle = [NSBundle 
bundleWithIdentifier:@"net.sourceforge.skim-app.quicklookgenerator"];
-        image = [[NSImage alloc] initWithContentsOfFile:[bundle 
pathForResource:@"Note" ofType:@"png"]];
-        [image release];
+        NSImage *image = [[NSImage alloc] initWithContentsOfFile:[bundle 
pathForResource:@"Note" ofType:@"png"]];
         NSFileWrapper *wrapper = [[NSFileWrapper alloc] 
initRegularFileWithContents:[image TIFFRepresentation]];
         [wrapper setPreferredFilename:[NSString stringWithFormat:@"[EMAIL 
PROTECTED]", type]];
+        [image release];
         
         NSTextAttachment *attachment = [[NSTextAttachment alloc] 
initWithFileWrapper:wrapper];
         [wrapper release];
@@ -134,7 +134,7 @@
                         NSString *type = [note objectForKey:@"type"];
                         NSString *contents = [note objectForKey:@"contents"];
                         NSString *text = [[note objectForKey:@"text"] string];
-                        NSString *color = [note objectForKey:@"color"];
+                        NSColor *color = [note objectForKey:@"color"];
                         unsigned int pageIndex = [[note 
objectForKey:@"pageIndex"] unsignedIntValue];
                         int start;
                         
@@ -150,7 +150,7 @@
                         [attrString 
appendAttributedString:[[[NSAttributedString alloc] initWithString:@"\n"] 
autorelease]];
                         [attrString addAttribute:NSParagraphStyleAttributeName 
value:noteParStyle range:NSMakeRange(start, [attrString length] - start)];
                     }
-                    [attrString fixAttributesInRange:NSMakerange(0, 
[attrString length])];
+                    [attrString fixAttributesInRange:NSMakeRange(0, 
[attrString length])];
                 }
                 
                 NSSize paperSize = NSMakeSize(612, 792);


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to