From: Richard Frith-Macdonald <address@hidden>
Date: Thu Jun 26, 2003 10:20:25 am Europe/London
To: address@hidden
Subject: Re: debugSet
On Wednesday, June 25, 2003, at 07:08 pm, Manuel Guesdon wrote:
Hi,
Is it possible to add a method in NSProcessInfo to assign debugSet ?
It's allow to disable dynamically disable completely debug logs (with
the possibility to re enabled them later) and it
will save process time.
Following is a quick & dirty patch for this.
Or may be a better solution: having a flag to disable/enable debug
logs.
What is wrong with doing ....
set = [[NSProcessInfo processInfo] debugSet];
saved = [set copy];
[set removeAllObjects]; // Turn off all debugging
....
[set unionSet: saved]; // Turn back on again