PreferencePane plugin: awakeFromNib gets called twice
PreferencePane plugin: awakeFromNib gets called twice
- Subject: PreferencePane plugin: awakeFromNib gets called twice
- From: Stephan Ruggiero <email@hidden>
- Date: Tue, 5 Apr 2005 11:09:02 +0200
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.
Here is how the outlets of the instances are connected:
File's owner:
_firsteyView: Not connected
_initialKeyView: Not connected
_lastKeyView: Not connected
_windows: NSWindow() <-- The main window
Principal class:
File's owner:
_firsteyView: Not connected
_initialKeyView: Not connected
_lastKeyView: Not connected
_windows: Not connected
Main window (NSWindow):
delegate: Not connected
initialFirstResponder: Not connected
toolbar: Not connected
Panel1 (NSPanel):
delegate: Not connected
initialFirstResponder: Not connected
toolbar: Not connected
Panel2 (NSPanel):
delegate: Not connected
initialFirstResponder: Not connected
toolbar: Not connected
Maybe someone of you can help me out how to connect things to stop the
awakeFromNib from being called twice?
Thank you!
Stephan
_______________________________________________
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