Hi Gerriet,

On Wed, May 28, 2008 at 5:35 PM, Gerriet M. Denkmann
<[EMAIL PROTECTED]> wrote:
>
> I have an NSMetadataItem, which gives me via attributes a list of keywords.
>
> But: kMDItemPath is not in this list, although
>        NSString *itemPath = [ item valueForAttribute: (NSString
> *)kMDItemPath ];
> gives a reasonable answer.

kMDItemPath is not indexed, and isn't fetched unless you explicitly
ask for it. Looking it up is an expensive operation (one mach message
round trip).

You'll find more about this in the archives for [EMAIL PROTECTED]

> Where can I find a correct list of attributes? And where is the header for
> the missing attributes?

I think anything that's not in the header is not guaranteed to stick
around. Although I really can't see them getting rid of kMDItemID...

Hamish
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to