• 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: should it crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: should it crash?


  • Subject: Re: should it crash?
  • From: Mudi Dandan <email@hidden>
  • Date: Mon, 29 Dec 2008 02:08:14 +0100

This is a overwriting confirmation dialog for file copying (very much like Finder's) and I'm releasing the view because it's not needed anymore after the user has chosen.

I have come to that conclusion that performSelectorOnMainThread: schedules messages before any other operations on the queue. Could be that?


Here is the scenario:

main thread         						another thread
------------------						--------------------

									1. start
									2. ask main thread to display the panel
3. display panel
									4. wait on a condition lock

4. user presses a button (shortcut )
5. unlock the condition lock
									6. continue working
									7. ask main thread to remove and release panel


8. remove and release panel .... .... ....

9. ??? Update the button and crash




On Dec 29, 2008, at 1:18 AM, Graham Cox wrote:


On 29 Dec 2008, at 4:34 am, Mudi Dandan wrote:

When you press that button the view gets dealloced.

Why?

Why does the button gets updated after I release the view?


What am I missing here ?


Why are you releasing the view? That's the question.

--Graham



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: should it crash?
      • From: Graham Cox <email@hidden>
References: 
 >should it crash? (From: Mudi Dandan <email@hidden>)
 >Re: should it crash? (From: Graham Cox <email@hidden>)

  • Prev by Date: Printing a range of text in a particular container --
  • Next by Date: Re: Crash when sorting tree bound to NSOutlineView
  • Previous by thread: Re: should it crash?
  • Next by thread: Re: should it crash?
  • Index(es):
    • Date
    • Thread