• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Button doesn't respond in a modal sheet created from window NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Nick Zitzmann <email@hidden>
  • Date: Tue, 23 Nov 2004 14:56:35 -0700


On Nov 23, 2004, at 2:17 PM, Keith Blount wrote:

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

Yes. You'll also have to end your sheet in the method running in the thread, and if you're using mutable objects, then you must also implement locking so two threads don't try and operate on the same object at once. Don't forget to use -performSelectorInMainThread: when you need to end the sheet, since a good deal of the AppKit is not thread-safe.


Nick Zitzmann
<http://www.chronosnet.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


  • Follow-Ups:
    • Re: Button doesn't respond in a modal sheet created from window NIB
      • From: Keith Blount <email@hidden>
References: 
 >Re: Button doesn't respond in a modal sheet created from window NIB (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: How can I stop running loop?
  • Next by Date: Re: help on 'help books'
  • Previous by thread: Re: Button doesn't respond in a modal sheet created from window NIB
  • Next by thread: Re: Button doesn't respond in a modal sheet created from window NIB
  • Index(es):
    • Date
    • Thread