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

NSOutputStream pb


  • Subject: NSOutputStream pb
  • From: Godefroy <email@hidden>
  • Date: Fri, 31 Oct 2003 11:33:33 +0100

i do not understand how use NSOutputStream.
this is my code :

NSOutputStream *outPut = [NSOutputStream alloc];
[outPut initToFileAtPath:aPath append:YES];
[outPut open];
[outPut write:aString maxLength:400];
[outPut close];

and i have 2 warnings at [outPut initToFileAtPath:aString append:YES]; and
[outPut write:logString maxLength:4000]; gdb says `NSOutputStream' may not
respond to `-outputStreamToFileAtPath:' but i don't understand why.
and during execution i have a "selector not recognized" error.
if somebody have an idea or another good manner to write at the end of
files.
_______________________________________________
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.

  • Prev by Date: Re: NSMutableArray Question
  • Next by Date: Please read my (unofficial) FAQ before posting.
  • Previous by thread: Re: Creation of constants
  • Next by thread: Please read my (unofficial) FAQ before posting.
  • Index(es):
    • Date
    • Thread