Re: PreferencePane plugin: awakeFromNib gets called twice
Re: PreferencePane plugin: awakeFromNib gets called twice
- Subject: Re: PreferencePane plugin: awakeFromNib gets called twice
- From: Dave Camp <email@hidden>
- Date: Tue, 5 Apr 2005 08:53:50 -0700
On Apr 5, 2005, at 2:09 AM, Stephan Ruggiero wrote:
Hello list,
I am writing a preferences pane plugin that has a main window for the
System Preferences app. and 2 separate panels the user can open.
The principal cocoa class (a subclass to NSPreferencesPane) is
instantiated in the IB and has a -(void)awakeFromNib call to initiate
some stuff when the plugin is selected.
Now my problem is that the awakeFromNib is called twice! I read about
this problem here, but no solution given seem to apply to my
situation, as I am not writing a standalone app, just a plugin.
That may not be a good place to put that code for a preference pane. I
would suggest looking at mainViewDidLoad, didSelect, and didUnselect.
Dave
---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden