• 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
Re: multiline NSTextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: multiline NSTextFields (solution)
      • From: Andreas Monitzer <email@hidden>
References: 
 >Re: multiline NSTextFields (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Machine serial number
  • Next by Date: Re: Pascal and Cocoa
  • Previous by thread: Re: multiline NSTextFields
  • Next by thread: Re: multiline NSTextFields (solution)
  • Index(es):
    • Date
    • Thread