• 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
NSTextView and Click on Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView and Click on Button


  • Subject: NSTextView and Click on Button
  • From: Steve Cronin <email@hidden>
  • Date: Wed, 28 Nov 2007 14:53:07 -0600

Folks;

I know there is a ton of documentation on this but if you don't know how to ask the right question you will never find the right answer... I have tried but I just can't seem to find what I'm looking for.

I have a regular old NSTextView (so I get the scrolling and new lines versus using a NSTextField)

I have the attributedString set in bindings to a instance variable in the windowController -> myAttrString

If the user is entering data into this NSTextView and then grabs the mouse and clicks a button I am not getting the latest data with [myAttrString string]

On the button click I'd like to do something like:
[myTextView textShouldEndEditing]  but that doesn't work.

It seems so simple.. I apologize if my frustration has made me blind to something well documented!

Thanks for any help!
Steve
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView and Click on Button
      • From: Joshua Emmons <email@hidden>
  • Prev by Date: Re: Sheet Doesn't Attach Itself To Window
  • Next by Date: Re: Refresh problem with right aligned rectangle while resizing anNSOutlineView
  • Previous by thread: Re: Subclassed control in IB uses original cell class
  • Next by thread: Re: NSTextView and Click on Button
  • Index(es):
    • Date
    • Thread