• 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
[newbie] Saving text from NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newbie] Saving text from NSTextView


  • Subject: [newbie] Saving text from NSTextView
  • From: Mark Woollard <email@hidden>
  • Date: Thu, 12 Sep 2002 13:32:31 +0100

I'm trying to save some text from an NSTextView with the following code (file has the fully pathed target file):

NSString *text = [[fileContents textStorage] string];
[text writeToFile:file automatically:NO];

However at runtime I get the following output:

002-09-12 13:29:35.510 SpamWeasel Pro[6788] *** -[NSBigMutableString writeToFile:automatically:]: selector not recognized

Which suggests to me that [[fileContents textStorage] string] isn't returning an NSString. I can't find NSBigMutableString in the docs either.

Any pointers on what's going on?

Thanks
Mark
_______________________________________________
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: [newbie] Saving text from NSTextView
      • From: Jeremy Dronfield <email@hidden>
    • Re: [newbie] Saving text from NSTextView
      • From: Jens Baumeister <email@hidden>
    • Re: [newbie] Saving text from NSTextView
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Start using Cocoa
  • Next by Date: Re: [newbie] Saving text from NSTextView
  • Previous by thread: Re: Start using Cocoa
  • Next by thread: Re: [newbie] Saving text from NSTextView
  • Index(es):
    • Date
    • Thread