• 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
Spotlight MDQuerySetSearchScope() bug? followup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spotlight MDQuerySetSearchScope() bug? followup


  • Subject: Spotlight MDQuerySetSearchScope() bug? followup
  • From: AurĂ©lien HugelĂ© <email@hidden>
  • Date: Fri, 23 Dec 2005 08:44:48 +0100

Hi list!,

I've found something strange with MDQuerySetSearchScope() function, and the bug apply to NSMEtadataQuery too.
if i pass a "too large" array, the limitation is not understood properly :

I want to observe some Mail mailbox to be informed of a new/deleted email (emlx file) : so i use a MDQuery with queryString: [NSString stringWithFormat:@"kMDItemContentType == 'com.apple.mail.emlx' && kMDItemFSCreationDate > %.0f",(double)[thresholdDate timeIntervalSinceReferenceDate]] // thresholdDate determines a minimum date.

And my scopedDirectories array contains those folder pathes :

<CFArray 0x3a0970 [0xa073a150]>{type = mutable-small, count = 11, values = (
0 : <CFString 0x3a12b0 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden@pop.online.net/ INBOX.mbox"}
1 : <CFString 0x3a1b50 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden@pop.online.net/ Sent Messages.mbox"}
2 : <CFString 0x3a2b50 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden/ INBOX.mbox"}
3 : <CFString 0x3a3200 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden/ Sent Messages.mbox"}
4 : <CFString 0x3a40c0 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/POP-postmaster@email@hidden/INBOX.mbox"}
5 : <CFString 0x3a4760 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/POP-postmaster@email@hidden/Sent Messages.mbox"}
6 : <CFString 0x3a5700 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden/INBOX.mbox"}
7 : <CFString 0x3a5d00 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden/Sent Messages.mbox"}
8 : <CFString 0x3a6320 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden/Junk.mbox"}
9 : <CFString 0x3a71f0 [0xa073a150]>{contents = "/Volumes/Data/Users/ aure/Library/Mail/email@hidden@ssl0.ovh.net/INBOX.mbox"}
10 : <CFString 0x3a7870 [0xa073a150]>{contents = "/Volumes/Data/ Users/aure/Library/Mail/email@hidden@ssl0.ovh.net/Sent Messages.mbox"}
)}

The query returns some valid valid results during the gathering phase, but the live update phase is not working at all!! i'm not informed of new files in those directories during the live update ...

replacing the array with [NSArray arrayWithObject:[NSString stringWithFormat:"%@/Library/Mail",NSHomeDirectory()], i'm perfectly informed of the new/deleted emlx files...

is there a known bug in MDQuerySetSearchScope() when passing many directories ??

thanks


_______________________________________________
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
  • Follow-Ups:
    • Re: Spotlight MDQuerySetSearchScope() bug? followup
      • From: Kaelin Colclasure <email@hidden>
  • Prev by Date: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
  • Next by Date: Re: Core Data: Is "version" a reserved attribute name?
  • Previous by thread: Re: How Does NSTableView/NSOutlineView reload automatically when they become visible on Screen
  • Next by thread: Re: Spotlight MDQuerySetSearchScope() bug? followup
  • Index(es):
    • Date
    • Thread