Need help Updating Images whilst app is running?
Hi,
I am building an application in xcode with applescript and obj-c. It basically trawls through lots of links looking for specific images, the whole process takes about a minute but the images don't update till the very end.
How would I go about changing this so that the images updated as soon as they were found?
Any help would be appreciated! A sample of my code is pasted below...
try
set imageurl to ("http://static.guim.co.uk/sys-images/Technology/Pix/pictures/2012/8/8/13444203329 67/Google-basketball-008.jpg")
set theURL to current application's NSURL's URLWithString_(imageURL)
set theImage to current application's NSImage's alloc's initWithContentsOfURL_(theURL)
theImage's setSize_({50, 50})
swatch_preview's setImage_(theImage)
end try
Thanks,
Mark
xcode-OTHER, Mac OS X (10.7.5)