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

Re: Append to file with NSString writeToFile:


  • Subject: Re: Append to file with NSString writeToFile:
  • From: Magnus Strand <email@hidden>
  • Date: Mon, 28 Feb 2005 11:49:39 +0100

|I think you can use NSFileManager method
- (BOOL)createFileAtPath:(NSString *)path contents:(NSData *)contents attributes:(NSDictionary *)attributes


Magnus

|||email@hidden wrote:

Actually, I think I figured out what my problem is.  All my code looks fine, but I was reading the docs on NSFileHandle and it says in the fileHandleForWritingAtPath: method that if no file exists at path, it returns nil.  I believe this is what is happening.  In the save panel where the user is choosing where to save they file, they are provided with a default filename.  But when they click OK, the file technically does not exist.

So now the question is, how do I create a file to write to?  Will keep looking through the docs.  Thanks.

James

_______________________________________________
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




--
*Magnus Strand *
Systemutvecklare | System Developer, MSc

*Teknik i Media* | Södra Förstadsgatan 2 | 211 43 Malmö | Tel +46 40 601 57 00 | Fax +46 40 601 57 99
Direkt +46 40 601 57 16 | Mobil +46 704 20 57 16 | email@hidden | www.tim.se


/This message contains information that may be privileged or confidential and is the property of Teknik i Media. / /It is intended only for the person to whom it is addressed. If you receive this message in error, please notify the sender immediately and delete all copies of this message. /

_______________________________________________
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: 
 >Re: Append to file with NSString writeToFile: (From: <email@hidden>)

  • Prev by Date: Solved: Append to file with NSString writeToFile:
  • Next by Date: Re: Where is plus arrow cursor?
  • Previous by thread: Re: Append to file with NSString writeToFile:
  • Next by thread: Re: Append to file with NSString writeToFile:
  • Index(es):
    • Date
    • Thread