• 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
Re: Write an NSString or NSMutableString to a Text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Write an NSString or NSMutableString to a Text file


  • Subject: Re: Write an NSString or NSMutableString to a Text file
  • From: Nir Soffer <email@hidden>
  • Date: Sun, 28 May 2006 11:55:27 +0300


On 28/05/2006, at 07:14, Or phix wrote:

I am trying to write an application that can output an NSString or an NSMutableString to a text file. I have tried using the writeToFile function of NSString but I am not getting anything. I have tried using the NSOutputStream but I guess I am not using the write method correctly. Any suggestion or hint would definitely be appreciated.

I guess your string is empty or nil :-)

add NSLog(@"%@", myString); call just before you write it to file and watch the log.


Best Regards,

Nir Soffer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Write an NSString or NSMutableString to a Text file (From: Or phix <email@hidden>)

  • Prev by Date: Re: Write an NSString or NSMutableString to a Text file
  • Next by Date: NSOutlineView - Trouble validating edits
  • Previous by thread: Re: Write an NSString or NSMutableString to a Text file
  • Next by thread: NSOutlineView - Trouble validating edits
  • Index(es):
    • Date
    • Thread