Mailing Lists: Apple Mailing Lists

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

Re: Spotlight -- Metadata importer vs file package containing rtfd files




For now you basically need to leave a trail file (not sure what to call it) and update that file when the data in the sql lite database changes etc.


For example in iCal the calendars are stored as they normally are but, in Library/Caches/Metadata/iCal/ are the spotlight files that get indexed and presented to the user, when one of these files is selected iCal starts up and should select the event for that day etc..

Delicious Library is doing exactly the same thing.

Vince


Thanks for the tips Vince, i've made good headway, and my plugin seems to be working now.
I do have a couple more questions though...


a) The objects i'm representing in spotlight are not "documents" at all, at least in the eyes of the user, even though i suppose the "trail file" is a document. I'd like to obscure this from the user somehow but there's a header that pops into the spotlight window when you expand the item for more info, "Where", and gives the file path. Is there a way to remove this, since it is irrelevant?

b) I noticed that for some reason when i create a path: '~/Library/ Caches/[my folder heirarchy similar to Address Book]' and add my files to it, spotlight refuses to index them. However when i used '~/ Library/Caches/MetaData/[my folder heirarchy]' it did. Why is this? Permissions are the same for both. It's not a big deal because now i have it in the latter folder and it works fine, but it should probably be noted in future documentation if it's not already(and i missed it somehow).

c) My objects don't really fit into the category of Documents, or Contacts, or any of the other categories spotlight seems to have. I'd like ideally to create my own category, is this possible, or is that reserved for Apple? I also noted that when you expand a Contact from address book in the Spotlight window you get some level of interactivity such as clicking on phone numbers or email addresses to produce some action. Can we add some interactivity to our own Spotlight items?

Thanks in advance,
    Ali

_______________________________________________
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
References: 
 >Spotlight -- Metadata importer vs file package containing rtfd files (From: Kirk Kerekes <email@hidden>)
 >Re: Spotlight -- Metadata importer vs file package containing rtfd files (From: Vince DeMarco <email@hidden>)
 >Re: Spotlight -- Metadata importer vs file package containing rtfd files (From: Ali Lalani <email@hidden>)
 >Re: Spotlight -- Metadata importer vs file package containing rtfd files (From: Vince DeMarco <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.