I allocate and init an NSThread as follows:

        if ( m_mythread ) [m_mythread cancel];
        m_mythread = [[MYThread alloc] initWithTarget:m_mythread 
selector:@selector(start) object:m_anobject];
        [m_mythread start];



I set a break in -start and see that this is a separate thread in my process 
... so far so good.

But, my UI becomes unresponsive.

I understand that the main thread handles the UI so why would it become 
unresponsive?

The overall behavior is as if the head code was executing in the main thread.

Can some light be shed on this?

I just did 

        [m_bfilenameListFromPath setThreadPriority:0.5];

before 

                [m_mythread start];

with the same result :  unresponsive UI, wait cursor (beach ball) is displayed.


-rags



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to