• 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
setting myself as fieldeditor's delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting myself as fieldeditor's delegate?


  • Subject: setting myself as fieldeditor's delegate?
  • From: Seth Delackner <email@hidden>
  • Date: Mon, 17 Mar 2003 00:12:00 -0800

I want all text fields in a window to select all of their text whenever the user clicks with the mouse. I read the archives, and it being a bit late I am just getting frustrated. In awakeFromNib I have:

NSWindow* w = [field1 window];
[[w fieldEditor:YES forObject:field1] setDelegate: self];

Just doesn't work. My delegate methods are never called. I don't get it. The fieldEditor is shared for the whole window, so why doesn't setting it's delegate do anything?
_______________________________________________
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.
  • Follow-Ups:
    • Re: setting myself as fieldeditor's delegate?
      • From: Stéphane Sudre <email@hidden>
    • Re: setting myself as fieldeditor's delegate?
      • From: "Sven A.Schmidt" <email@hidden>
  • Prev by Date: Re: How To: Date/Time Field/Steppers
  • Next by Date: Re: Displaying Error Messages
  • Previous by thread: Re: Java vs C/Objective-C performance question
  • Next by thread: Re: setting myself as fieldeditor's delegate?
  • Index(es):
    • Date
    • Thread