• 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: Graham Cox <email@hidden>
  • Date: Mon, 29 Dec 2008 12:48:18 +1100


On 29 Dec 2008, at 12:08 pm, Mudi Dandan wrote:

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.


Terminology matters. By 'view' do you mean panel/window? I took 'view' to mean an NSView, i.e. the button.

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

9. ??? Update the button and crash


Why are these steps in this order? In fact why do you even need to update the button at this point at all - its window has gone. When the window is released it releases all its subviews, including the button.

Just leave out step 9.

--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: Mudi Dandan <email@hidden>
References: 
 >should it crash? (From: Mudi Dandan <email@hidden>)
 >Re: should it crash? (From: Graham Cox <email@hidden>)
 >Re: should it crash? (From: Mudi Dandan <email@hidden>)

  • Prev by Date: A Mac App & helper NSStatusItem - how to share preferences
  • Next by Date: Overriding NSHTTPCookieStorage for WebView
  • Previous by thread: Re: should it crash?
  • Next by thread: Re: should it crash?
  • Index(es):
    • Date
    • Thread