• 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: Using C++ iostreams for file IO in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using C++ iostreams for file IO in Cocoa


  • Subject: Re: Using C++ iostreams for file IO in Cocoa
  • From: Derrick Bass <email@hidden>
  • Date: Wed, 1 Feb 2006 10:11:42 -0600

On Feb 1, 2006, at 8:15 AM, Dan Price wrote:

I much prefer using the C++ iostream for writing and
parsing text files. Can anyone suggest how I can use
it from the return of a an NSOpenPanel object? My
apps' core classes are already compiled as C++ and
Obj-C++ so this will allow me to replace the clunky
appkit code which currently handles IO for my core
classes.

Hope this into to vague.


iostreams take path names, so this should do it:

ifstream myStream( [[panel filename] fileSystemRepresentation] );

I haven't tested it, though.

Derrick

_______________________________________________
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


  • Follow-Ups:
    • Re: Using C++ iostreams for file IO in Cocoa
      • From: Dan Price <email@hidden>
References: 
 >Using C++ iostreams for file IO in Cocoa (From: Dan Price <email@hidden>)

  • Prev by Date: Spotlight importer question
  • Next by Date: Re: Learning Cocoa, but no programing experience, possible?
  • Previous by thread: Using C++ iostreams for file IO in Cocoa
  • Next by thread: Re: Using C++ iostreams for file IO in Cocoa
  • Index(es):
    • Date
    • Thread