• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting NSMetadataQuery to sort properly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Getting NSMetadataQuery to sort properly (From: Tom Birch <email@hidden>)
 >Re: Getting NSMetadataQuery to sort properly (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: pageHeader and pageFooter
  • Next by Date: Where is NSXMLChildren defined?
  • Previous by thread: Re: Getting NSMetadataQuery to sort properly
  • Next by thread: Check Undefined Function Calls
  • Index(es):
    • Date
    • Thread