Re: Console
Re: Console
On 22 Sep 2010, at 23:20, albert jordan wrote:
>
> Is there anyway in Xcode to have multiple Consoles? I have multiple streams of log messages, and would like to display log messages in separate windows. I've tried using an NSTextView object to display messages, but I believe this does not work because the log messages arrive too rapidly. Console works fine.
>
Another non xcode solution is to just log to a file and then use a kqueue to retrieve the log in chunks back into your NSTextView.
I use UKKQueue somewhat like this:
// register for file notifications
UKKQueue *kq = [UKKQueue sharedFileWatcher]; // starts up a watcher thread
[kq setDelegate:self]; // use delegate messages as they will be executed on this thread
NSString *path = @"/hopefully/my/log/is/here";
[kq addPathToQueue: path notifyingAbout: UKKQueueNotifyAboutWrite];
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Console (From: albert jordan <email@hidden>) |