• 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: App crashes on thread exit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App crashes on thread exit


  • Subject: Re: App crashes on thread exit
  • From: Fabio Genoese <email@hidden>
  • Date: Sat, 12 Oct 2002 18:29:19 +0200

Am Samstag, 12.10.02 um 18:02 Uhr schrieb Cameron Hayne:
So this means that your updating of the GUI happens in the worker thread,
not the main (AppKit) thread as you had thought.
Usually you just set a flag in the worker thread and check this flag in the
main thread (protected with NSLock) or else set up more sophisticated
communication between threads. But, assuming you are targeting Jaguar, maybe
you could use the new performSelectorOnMainThread method (see NSObject or
the Foundation release notes).

Hi,

thanks for your reply - I'm using performSelectorOnMainThread to update the UI now. However, it still crashes (same error log). It must be something else. *shrug*

Fabio
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: App crashes on thread exit
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: App crashes on thread exit (From: Cameron Hayne <email@hidden>)

  • Prev by Date: 4. Icon Appearing in Workspace (/Applications Step)
  • Next by Date: Re: Sorting a TableView in tableView:setObjectValue:forTableColumn:row:
  • Previous by thread: Re: App crashes on thread exit
  • Next by thread: Re: App crashes on thread exit
  • Index(es):
    • Date
    • Thread