|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
kMDItemTextContent is the one attribute that's query-only. Spotlight's index doesn't store the original text of the document at all, so you can't get it from there. As for Quick Look, each type of file has a plug-in, which understands how to read in and display a given file format. There's no "magic" in either case, just code to do the heavy lifting.
If you're looking at getting access to the contents of a file, I'd recommend just reading the file into a buffer (or mapped memory, if it might be large) and then displaying the contents of the buffer. In cocoa, this is a trivial thing to do.
On Mar 5, 2009, at 9:57 AM, HAMSoft Admin wrote:
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Spotlight-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
|>kMDItemTextContent... where is it? (From: HAMSoft Admin <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.