• 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
PreferencePane plugin: awakeFromNib gets called twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: PreferencePane plugin: awakeFromNib gets called twice
      • From: Dave Camp <email@hidden>
  • Prev by Date: Re: Java Cocoa Bindings: not yet implemented?!
  • Next by Date: Re: Drawing views into NSImage
  • Previous by thread: Re: Best way to use bindings with NSMatrix
  • Next by thread: Re: PreferencePane plugin: awakeFromNib gets called twice
  • Index(es):
    • Date
    • Thread