Re: Add metadata to my files for Spotlight
Re: Add metadata to my files for Spotlight
- Subject: Re: Add metadata to my files for Spotlight
- From: Lorenzo <email@hidden>
- Date: Tue, 10 May 2005 15:39:39 +0200
Thank you.
In the meantime I have found a sample code just on my boot disk at
/Developer/Examples/Metadata/ImporterExample/
Ahh, this way I understand much better how to work on this issue.
Anyway, I spoke about GBs just to put myself in the worst of the cases,
because I have read on the apple-docs that we developers have to be good
citiziens and reduce the work of indexing at minimum.
Actually my files are just less than 1MB, so I will use
tempDict = [[NSDictionary alloc]
initWithContentsOfFile:(NSString*)pathToFile];
Maybe in the future, when the importer plug-ins will be thousands (...)
I will find a better method. Spotlight is amazing! No competition at all!
One question more:
__________________
Let's suppose in the future I want to change my importer plugin because I
decided to add/remove some metadata. I will release a new version of my
application with a new version of the plug-in embedded within the
application.
Will the new plugin replace the old plugin automatically or should I manage
this change acting on the file identifier? :-0
Best Regards
--
Lorenzo
email: email@hidden
> From: Ondra Cada <email@hidden>
> Date: Tue, 10 May 2005 13:44:47 +0200
> To: "<email@hidden>" <email@hidden>
> Cc: email@hidden, email@hidden
> Subject: Re: Add metadata to my files for Spotlight
>
>
> On 10.5.2005, at 13:09, <email@hidden>
> <email@hidden> wrote:
>
>> 2. Use whatever you use to laod your file from within your
>> application.
>>
>
> Well, I'd say the more probable it is for a particular application
> the files are huge (IIRC, the original message spoke of gigabytes),
> the more reasonable it might be to use some way of placing/extracting
> metadata *without* reading the complete thing in.
>
> There is a number of possibilities, like keyed archiving, using a
> package instead of a flat file, or perhaps even using the HFS+
> metadata (low-level API only, far as I know, and somewhat difficult
> other OSen portability are the disclaimers; also, far as I know,
> Apple did not release any hints of how to use and/or how not use
> them: it would stand to reason in future releases HFS+ metadata would
> be *automatically* indexed by Spotlight, but one just does not know :
> ( ).
> ---
> Ondra Čada
> OCSoftware: email@hidden http://www.ocs.cz
> private email@hidden http://www.ocs.cz/oc
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden