Re: How do I call a function when my preference pane bundle closes?
Re: How do I call a function when my preference pane bundle closes?
- Subject: Re: How do I call a function when my preference pane bundle closes?
- From: Jason Coco <email@hidden>
- Date: Wed, 29 Oct 2008 12:38:31 -0400
On Oct 29, 2008, at 12:22 , Adam Penny wrote:
Hi there,
I want to save preferences when the user either closes the
preference pane window, clicks the show all button or quits system
preferences. Can I just put the method call in the -(void)dealloc or
is this a bad idea?
This is a bad idea. -(void)dealloc may never be called. You should do
this in your pref pane subclass in the -(void)didUnselect or -
(void)willUnselect functions.
J
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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