Re: Button doesn't respond in a modal sheet created from window NIB
Re: Button doesn't respond in a modal sheet created from window NIB
- Subject: Re: Button doesn't respond in a modal sheet created from window NIB
- From: Keith Blount <email@hidden>
- Date: Tue, 23 Nov 2004 13:17:03 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Many thanks for your reply, much appreciated. This is
what I feared... Could you (or anyone) please point me
in the right direction of going about this? I have
never had to use threads before, and have only been
programming in Cocoa for under six months. Looking at
the Anguish et al book, I am thinking that maybe I
need to move my for... loop into a separate method and
then call that method using
detachNewThreadSelector:toTarget:withObject: - is that
the way to go, or do I need to do more / something
entirely different?
Many thanks for any advice and thanks again for the
help,
Keith
--- Nick Zitzmann <email@hidden> wrote:
>
> On Nov 23, 2004, at 12:09 PM, Keith Blount wrote:
>
> > The only difference I can see is that
> > the other sheet I use is created from an action
> > connected to a menu, and there's not a for... loop
> > bang in the middle of it. Could this be the
> problem?
>
> No.
>
> > If somebody could tell me what I'm doing wrong, I
> > would be very grateful.
>
> You've got a method that runs a for loop in the main
> thread. While this
> is going on, the run loop will not be processing
> events, which means it
> will not invoke the action until your method is
> finished and the run
> loop can start processing again. To resolve this,
> you either need to
> move your processing loop to another thread, or
> process events inside
> your processing loop.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden