FROM : Douglas Norton
DATE : Tue Apr 05 19:24:49 2005
On 5 Apr 2005, at 16:53, Dave Camp wrote:
> On Apr 5, 2005, at 2:09 AM, Stephan Ruggiero wrote:
>
>> 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.
>
or willSelect as this is called before your pane is displayed.
Douglas
DATE : Tue Apr 05 19:24:49 2005
On 5 Apr 2005, at 16:53, Dave Camp wrote:
> On Apr 5, 2005, at 2:09 AM, Stephan Ruggiero wrote:
>
>> 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.
>
or willSelect as this is called before your pane is displayed.
Douglas
| Related mails | Author | Date |
|---|---|---|
| Stephan Ruggiero | Apr 5, 11:09 | |
| Dave Camp | Apr 5, 17:53 | |
| Douglas Norton | Apr 5, 19:24 | |
| Stephan Ruggiero | Apr 6, 09:41 | |
| Stephan Ruggiero | Apr 6, 18:47 | |
| Dave Camp | Apr 6, 19:14 |






Cocoa mail archive

