Re: Getting NSMetadataQuery to sort properly
Re: Getting NSMetadataQuery to sort properly
- Subject: Re: Getting NSMetadataQuery to sort properly
- From: Tom Birch <email@hidden>
- Date: Tue, 28 Jun 2005 11:30:35 +1000
On 28/06/2005, at 03:00:20, Corbin Dunn wrote:
[[NSSortDescriptor alloc] initWithKey:@"kMDItemPath"
ascending:YES]
Try using kMDItemFSName
Hmmm, I tried and it sorted correctly by name, but unfortunately
that's a non-solution for me as I'm using the full path as the key
used to merge known pdf's and ones found by spotlight, so I really
need to sort by kMDItemPath
I wonder if this anything to do with the fact that [NSMetadataItem -
attributes] shows an array that doesn't actually contain
"kMDItemPath" yet it's a perfectly valid attribute
Tom
--corbin
_______________________________________________
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