• 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: Writing NSString to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing NSString to a file


  • Subject: Re: Writing NSString to a file
  • From: Erik Buck <email@hidden>
  • Date: Thu, 1 Jun 2006 07:11:24 -0700 (PDT)

How about

  -(void) writeString
  {
     [@"Hello From DinuJohn" writeToFile:[NSTemporaryDirectory() stringByAppendingPathComponent:@”temp.txt"] atomically:YES encoding:NSUTF8StringEncoding error:NULL];
  }

  Also, to get along with Cocoa and make it easy for Cocoa programmers to help you, you need to use Cocoa's naming conventions.  Among other things, methods and non global variables start with lower case letters.

  http://www.stepwise.com/Articles/Technical/2002-10-13.01.html

 _______________________________________________
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

  • Prev by Date: Re: Re: Click on a URL in WebKit
  • Next by Date: Re: Writing NSString to a file
  • Previous by thread: Re: Writing NSString to a file
  • Next by thread: NSTableView: column selection selects rows?
  • Index(es):
    • Date
    • Thread