Perform selector

Hi All,

I have an ASOC app that processes images (see the previous post… sandboxing) via sips and Image events. It runs a loop iterating through the images, covering them etc.

The age-old problem is, once it starts the uI Freezes and you can’t quit the process. I tried

on processFilesAfterDelay_(sender)
     performSelector_withObject_afterDelay_("processFiles:", 1, 1)
  end processFilesAfterDelay_

but it still is frozen.

Any ideas?

Best, Rob

Hi,

you can perform the task on a different thread with performSelectorInBackground_withObject_()

By the way, Cocoa Drawing and CoreGraphics are much more versatile than sips or Image Events

. and Sandbox-proof :wink: