Re: multiline NSTextFields
Re: multiline NSTextFields
- Subject: Re: multiline NSTextFields
- From: Brian Webster <email@hidden>
- Date: Mon, 24 Sep 2001 13:37:41 -0500
On Monday, September 24, 2001, at 01:19 PM, Andreas Monitzer wrote:
On Monday, September 24, 2001, at 07:46 , Brian Webster wrote:
To override the custom field editor, you should implement the
windowWillReturnFieldEditor:toObject: method in your window's
delegate.
Well, since I'm working inside the System Preferences app (just
like the network-setup), I can't alter the window's delegate,
because that might break something (maybe not now, but maybe in
the future). Any better way to set the field editor?
Well, a class dump of the network setup pref bundle reveals that
the NetworkController class, which inherits from
NSAdminPreference, implements that delegate method. I'm not too
familiar with the system prefs API, but perhaps it automatically
sets the controller as the window's delegate?
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster