Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

spotlight, file extension, and UTIs



I have an spotlight plugin that indexes documents with extension ".fb2". These documents come from a UNIX server in zipped format with extension ".fb2.zip". For example "foo.fb2.zip" is an archive of "foo.fb2". I do not want to require the user to uncompress documents after downloading to index them, because my application (that can view those documents) can handle zipped versions just fine (and it saves storage space). So I want my Spotlight plugin to be able to index both .fb2 and .fb2.zip files. BUT! it looks like Mac OS only considers ".zip" to be an extension and not ".fb2.zip" My question is: How can I define a UTI that maps to .fb2.zip? Is there a way to get Spotlight to index .fb2.zip with my plugin? The only solution I found so far is to assign all .zip files to my plugin and then handle only those that have .fb2.zip extension. But this is clearly unacceptable -- I do not want to hijack all .zip files...

Thank you.

-- Anton _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.