• 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: good values for MDQueryBatchingParams
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: good values for MDQueryBatchingParams


  • Subject: Re: good values for MDQueryBatchingParams
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 12 Mar 2006 09:33:12 -0800
  • Thread-topic: good values for MDQueryBatchingParams

On or about 3/12/06 9:23 AM, thus spake "Alexander Cohen"
<email@hidden>:

>
> On 12-Mar-06, at 11:19 AM, Matt Neuburg wrote:
>
>> On Sat, 11 Mar 2006 17:45:36 -0500, Aleaxander Cohen
>> <email@hidden> said:
>>> Anyone have any 'UI nice' values for the MDQueryBatchingParams of a
>>> MDQueryRef? Seems like whatever i put in, the UI is still going to be
>>> held up for a while after the first progress notification.
>>
>> My app uses:
>>
>> batch.first_max_num=50;
>> batch.first_max_ms=500;
>> batch.progress_max_num=50;
>> batch.progress_max_ms=500;
>> batch.update_max_num = batch.update_max_ms = 1000; // dummy values
>
> And these values don't make spotlight queries hold up your UI? With
> these values, i get my first progress notification, they i get the
> beach ball for a while, then i get lots of updates in a row, then its
> done.
>
> Maybe if i run my qyery in a thread, is it ok to run queries in threads?

If you expect to be able to update the interface while the query is going
on, you SHOULD run the query in a thread. m.

--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/



 _______________________________________________
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: 
 >Re: good values for MDQueryBatchingParams (From: Alexander Cohen <email@hidden>)

  • Prev by Date: Re: Newbie question on Methods
  • Next by Date: Help on NSToolbar
  • Previous by thread: Re: good values for MDQueryBatchingParams
  • Next by thread: complicated (I think) Binding
  • Index(es):
    • Date
    • Thread