• 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: console output -> NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: console output -> NSTextView


  • Subject: Re: console output -> NSTextView
  • From: Koen van der Drift <email@hidden>
  • Date: Sun, 30 May 2004 07:38:17 -0400

On May 30, 2004, at 1:21 AM, Scott Anguish wrote:


On May 29, 2004, at 11:28 PM, Koen van der Drift wrote:

Maybe I can replace all the printf calls with myPrintf, which then uses a Notification that is picked up by the window controller which passes the data to the NSTextView. Not sure if this will work, because the number of arguments for the printf calls is not always the same.


if you're replacing the printf calls with your own routine, why not just replace it with a macro that creates a new NSString using the format passed to it, and then calls a routine that directly inserts the new string at the end of a text view?



I also found this in the archives:

http://cocoa.mamasam.com/COCOADEV/2002/04/1/30200.php


Seems to work fine so far.

- Koen.
_______________________________________________
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: 
 >console output -> NSTextView (From: Koen van der Drift <email@hidden>)
 >Re: console output -> NSTextView (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Deleting a row
  • Next by Date: Re: Deleting a row
  • Previous by thread: Re: console output -> NSTextView
  • Next by thread: Using NSThread (was: console output -> NSTextView)
  • Index(es):
    • Date
    • Thread