should it crash?
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