Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView and Click on Button



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.