• 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: NSTextView question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView question


  • Subject: Re: NSTextView question
  • From: Heinrich Giesen <email@hidden>
  • Date: Fri, 17 Mar 2006 09:32:34 +0100


On 17.03.2006, at 00:18, Ricky Sharp wrote:

I'm going to set the window controller to be the textField delegate
and see if textDidEndEditing is called at any time; other than that,
any suggestions?

try this:

- (void) clickFromButton:sender
{
   // window is the window that contains the textField
   [window endEditingFor:nil];
   // get the string from the textField something like
   str = [mTextField stringValue];
   // rest of the action
}

--
Heinrich Giesen
email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSTextView question
      • From: Rudi Sherry <email@hidden>
  • Prev by Date: Re: Cocoa Developer Wanted Sydney Australia
  • Next by Date: Button up and down cause two different actions
  • Previous by thread: Re: NSTextView question
  • Next by thread: Re: NSTextView question
  • Index(es):
    • Date
    • Thread