• 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: NSProgressIndicator (CallBacks)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSProgressIndicator (CallBacks)


  • Subject: Re: NSProgressIndicator (CallBacks)
  • From: "Barry" <email@hidden>
  • Date: Thu, 19 Jul 2007 09:31:55 +0100

Alistair

Thanks again.

I'll certainly take a good look at Apple's Accelerate  framework.

At the moment I'm calling NSProgressIndicator incrementBy AND displayIfNeeded via a callback at the end of each row of pixels.
Do I need to add a WaitNextEvent (or whatever the latest API call is) at this time ?


Barry

----- Original Message ----- From: "Alastair Houghton" <email@hidden>
To: "Barry" <email@hidden>
Cc: "Uli Kusterer" <email@hidden>; "Cocoa-list" <email@hidden>
Sent: Thursday, July 19, 2007 9:19 AM
Subject: Re: NSProgressIndicator (CallBacks)



On 19 Jul 2007, at 08:37, Barry wrote:

Thanks for this

My app is doing some heavy matrix maths on images - could be busy for many minutes depending on image size etc..

Since you mention that, have you looked at Apple's Accelerate framework? It includes lots of routines you can use for this type of work, and they've spent a lot of time optimizing them to make them go fast on the various different CPUs you might be running on.


I guess the CPU is so busy with this it cannot update the display.

No, that's not the problem. It's that you aren't handling events.

I may have to attempt to break the maths into small units & use multi-threading but this will not be easy !

One or the other; you don't need to do both. The point of threading is that you can write your code the same way you would normally, except for the fact that any communication with another thread requires locking or thread-safe queues or similar. (In Cocoa, there's a very convenient - performSelector:onMainThread:withObject:waitUntilDone: method that you can call to send a message to your main thread.)


Kind regards,

Alastair.

--
http://alastairs-place.net






--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.9/907 - Release Date: 18/07/2007 15:30




_______________________________________________

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


  • Follow-Ups:
    • Re: NSProgressIndicator (CallBacks)
      • From: Alastair Houghton <email@hidden>
    • Re: NSProgressIndicator (CallBacks)
      • From: Manfred Schwind <email@hidden>
References: 
 >NSProgressIndicator (CallBacks) (From: "Barry" <email@hidden>)
 >Re: NSProgressIndicator (CallBacks) (From: Uli Kusterer <email@hidden>)
 >Re: NSProgressIndicator (CallBacks) (From: "Barry" <email@hidden>)
 >Re: NSProgressIndicator (CallBacks) (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: NSProgressIndicator (CallBacks)
  • Next by Date: Re: NSProgressIndicator (CallBacks)
  • Previous by thread: Re: NSProgressIndicator (CallBacks)
  • Next by thread: Re: NSProgressIndicator (CallBacks)
  • Index(es):
    • Date
    • Thread