Delegate weirdness in pref pane
Delegate weirdness in pref pane
- Subject: Delegate weirdness in pref pane
- From: Thomas Harrington <email@hidden>
- Date: Mon, 25 Nov 2002 16:41:26 -0700
I have a different question related to NSPreferencePanes:
The main view of the pref pane includes an NSTableView, and this view's
delegate is set to the NSPreferencePane subclass I'm using. So far, so
good.
But if I load the pref pane in System Preferences, then click over to a
different pref pane, then come back to my pref pane, the NSTableView
loses track of its delegate.
Sort of. Calling -[NSTableView delegate] indicates that it still knows
what its delegate is. Only it doesn't call any of the delegate
methods. I tried resetting the delegate via setDelegate (in
-[NSPreferencePane didSelect]) but that made no difference. However if
I first set the delegate to nil, and then back to the same object it
had been using, delegate methods get called again.
What's going on? Why does it "sort of" lose its delegate, and only
recover it if I first tell it not to use a delegate anymore?
--
Tom Harrington
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.