Re: NSMetadataItem attributes
Re: NSMetadataItem attributes
- Subject: Re: NSMetadataItem attributes
- From: "Hamish Allan" <email@hidden>
- Date: Wed, 28 May 2008 19:28:35 +0100
Hi Gerriet,
On Wed, May 28, 2008 at 5:35 PM, Gerriet M. Denkmann
<email@hidden> 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@hidden.
> 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@hidden)
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:
This email sent to email@hidden