• 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: printf to cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf to cocoa


  • Subject: Re: printf to cocoa
  • From: John Stiles <email@hidden>
  • Date: Wed, 27 Apr 2005 18:04:08 -0700

If you can change the C code to call a function you write instead of calling printf (maybe use a macro?), this would be easy. Call vsnprintf to get the output and then append that output to your NSTextView.


On Apr 27, 2005, at 5:27 PM, Adam wrote:

I have a bunch of .c files that I would just like to put a cocoa wrapper on. This part I have done easy. A button from my window calls an IBACTION method which calls a function from the c code which does bla bla bla who cares it works. However, the c code prints errors during this process with printf which only shows up in the console. Is there any way to redirect what is sent to printf to an NSTextView? Or somehow get it to display in my cocoa GUI?

Adam

_______________________________________________
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

_______________________________________________ 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: 
 >printf to cocoa (From: Adam <email@hidden>)

  • Prev by Date: Re: [OT] WWDC hotels for car-less people?
  • Next by Date: Better diff tool?
  • Previous by thread: printf to cocoa
  • Next by thread: Re: printf to cocoa
  • Index(es):
    • Date
    • Thread