• 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: Cocoa version of the fstream lib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa version of the fstream lib?


  • Subject: Re: Cocoa version of the fstream lib?
  • From: Chris Ridd <email@hidden>
  • Date: Fri, 06 Feb 2004 14:04:51 +0000

On 6/2/04 1:10 pm, Jeremyah Payne <email@hidden> wrote:

> How would i do something like
>
> ifstream fin;
>
> fin.open("somefile.txt");
>
> fin>>data;
>
> fin.close();

If you use the Objective-C++ compiler instead of the Objective-C compiler,
you can mix C++ code (including things like the STL) with Objective-C.

Xcode will compile files ending in .mm using the Objective-C++ compiler.

There are some restrictions in Objective-C++ which you'll need to keep in
mind: C++ objects are not Objective-C objects, C++ memory management doesn't
apply to Objective-C objects, and probably some other things. Read the
documentation installed on your hard disk :-)

Cheers,

Chris
_______________________________________________
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.

References: 
 >Cocoa version of the fstream lib? (From: Jeremyah Payne <email@hidden>)

  • Prev by Date: Re: Window transparency
  • Next by Date: Re: Any news regarding an official iCal interface
  • Previous by thread: Cocoa version of the fstream lib?
  • Next by thread: Re: Cocoa version of the fstream lib?
  • Index(es):
    • Date
    • Thread