Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-05 Thread Alexander Hartner
Thanks to all those who responded. I managed to implement what you suggested. Previously I did had some issues, but managed to resolve them. One mistake I made before was doing the main work in the main thread via performSelectorOnMainThread. I now separated the UI updated and the long task

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Stefan Werner
On Jun 4, 2008, at 4:10 PM, Alexander Hartner wrote: 1.) I gathered i have to create a new NSAutoReleasePool in my "threaded" method. Is this correct ? Yes, every thread needs a separate AutoReleasePool. I don't know from the top of my head if NSThread creates one for you (I usually use p

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Randall Meadows
On Jun 4, 2008, at 5:10 PM, Alexander Hartner wrote: I have an application which refreshes a NSTable with data from a network server. The refresh can take several seconds, and might even fail when the server is not accessible. During the refresh process I would like to display a sheet with

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Hamish Allan
Hi Alex, On Thu, Jun 5, 2008 at 12:10 AM, Alexander Hartner <[EMAIL PROTECTED]> wrote: > 1.) I gathered i have to create a new NSAutoReleasePool in my "threaded" > method. Is this correct ? Yes. > 2.) During execution of this I am updating the UI components from a thread > which is not the main

Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Alexander Hartner
I have an application which refreshes a NSTable with data from a network server. The refresh can take several seconds, and might even fail when the server is not accessible. During the refresh process I would like to display a sheet with a spinning progress indicator. Everything worked sort