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

should it crash?


  • Subject: should it crash?
  • From: Mudi Dandan <email@hidden>
  • Date: Sun, 28 Dec 2008 18:34:26 +0100

Hi All,

I have a view (kind of a confirmation dialog) that has a button that dismisses it. When you press that button the view gets dealloced. This works fine when using mouse but if I assign a shortcut to the button it starts crashing randomly with the following message:

*** -[NSButton drawCell:]: message sent to deallocated instance 0x193faf60

The reason it crashes only when using the shortcut is obviously that it case of the shortcut it invokes the action before it updates the button.

Why does the button gets updated after I release the view?
What am I missing here ?

Mudi





_______________________________________________

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>
  • Prev by Date: Modify appearance of NSSegmentedControl
  • Next by Date: Re: CATextLayer not visible when added as a sub-layer . . .
  • Previous by thread: Modify appearance of NSSegmentedControl
  • Next by thread: Re: should it crash?
  • Index(es):
    • Date
    • Thread