NSTextView storage problem
NSTextView storage problem
- Subject: NSTextView storage problem
- From: "LANCE GREENWOOD" <email@hidden>
- Date: Sat, 26 Jul 2003 18:33:44 -0600
I am writing a program and am having problems storing the values of the
NSTextViews.
Lets say that this function is connected to a button, and when the user
clicks
it the data that the user has typed in is stored in an NSString and is
written out
to a NSTextField (for testing purposes).
- (IBAction)updateNSTextFieldAction:(id)sender
{
value = [textViewOutlet string];
[textFieldOutlet setStringValue:value];
}
Then there is another button the user can click, after the data has been
deleted in the
NSTextView, (manually, using the delete key) that will take the data from
the NSString *value
and put it in the NSTextView.
- (IBAction)updateNSTextViewAction:(id)sender
{
[textViewOutlet setString:value];
}
Now why doesn't value have anything in it? Or what is the best way to store
the information
in the NSTextView. I don't need any formatting information.
Thanks for looking at this problem.
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
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.