Skip to content

Commit

Permalink
Improved README. Reintroduced version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
onekiloparsec committed Mar 7, 2015
1 parent ed0fd8c commit a82301a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions QLFits3/GeneratePreviewForURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,10 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
[synthesizedInfo setObject:HDULinesString forKey:@"HDUTableLines"];
}

// This NEVER works in debug???
NSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.onekiloparsec.QLFits3"];
// NSString *versionString = [[bundle infoDictionary] objectForKey:@"CFBundleVersion"];
[synthesizedInfo setObject:@"3" forKey:@"BundleVersion"];
NSString *versionString = [[bundle infoDictionary] objectForKey:@"CFBundleVersion"];
[synthesizedInfo setObject:versionString forKey:@"BundleVersion"];

NSURL *htmlURL = [bundle URLForResource:templateName withExtension:@"html"];
NSMutableString *html = [NSMutableString stringWithContentsOfURL:htmlURL encoding:NSUTF8StringEncoding error:NULL];
Expand Down
2 changes: 1 addition & 1 deletion QLFits3/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.0.1</string>
<string>3.0.3</string>
<key>CFPlugInDynamicRegisterFunction</key>
<string></string>
<key>CFPlugInDynamicRegistration</key>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ It is released open source under the [GNU General Public Licence](http://en.wiki
Installation
------------

*[Download the latest binary (3.0.2)](http://onekilopars.ec/softwares/QLFits3.qlgenerator.zip)*
*[Download the latest binary](http://onekilopars.ec/softwares/QLFits3.qlgenerator.zip)*

Put the QLFits3.qlgenerator bundle in _/Library/QuickLook_ (not in _~/Library/QuickLook_) and run the (safe and instantenous) command: `/bin/sh qlmanage -r` to reset the quicklook daemon.

Expand Down

0 comments on commit a82301a

Please sign in to comment.