• 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: Standard input/output in Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standard input/output in Objective-C


  • Subject: Re: Standard input/output in Objective-C
  • From: Mikael Wämundson <email@hidden>
  • Date: Tue, 23 Mar 2010 23:18:25 +0100

Thnx!

Just changing the suffix to .mm and rebuilding worked and the library was found! Great!

/Mikael

23 mar 2010 kl. 22.56 skrev Brian Postow:

>
> On Mar 23, 2010, at 5:44 PM, Mikael Wämundson wrote:
>
>> First: Yes, I've been looking around on the net to find an answer ;)
>>
>> I really like the C++ method of using cin/cout in the iostream.h when communicating via the standard input/output (i.e. the Terminal).
>>
>> When doing this in Objective-C it gets, to me, very complicated. Seems I'm going wrong some way.
>>
>> My first attempt is of course to just use the cin/cout methods by importing iostream.h, but when looking for the header file I find it deeply buried (/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/stream) and I don't succeed in importing it.
>> My conclusion from this is: I'm not supposed to use cin/cout in an Objective-C application???
>
>
> Did you try using an objective-C++ program? in Xcode, if you make all of your .m files into .mm files, it should automatically compile as objective-c++ and then cin and cout may work...
>
> Also, you shouldn't need to do more than
>
> #include <streamio.h>
> like normal... the compiler should know where to find it.
>
>
> Brian Postow
> Senior Software Engineer
> Acordex Imaging Systems
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Standard input/output in Objective-C (From: Mikael Wämundson <email@hidden>)
 >Re: Standard input/output in Objective-C (From: Brian Postow <email@hidden>)

  • Prev by Date: Re: Standard input/output in Objective-C
  • Next by Date: Re: Standard input/output in Objective-C
  • Previous by thread: Re: Standard input/output in Objective-C
  • Next by thread: Re: Standard input/output in Objective-C
  • Index(es):
    • Date
    • Thread