• 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 storage problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: NSTextView storage problem
      • From: Thomas Finley <email@hidden>
  • Prev by Date: NSData & NSMovie
  • Next by Date: Re: NSTextView storage problem
  • Previous by thread: NSData & NSMovie
  • Next by thread: Re: NSTextView storage problem
  • Index(es):
    • Date
    • Thread