gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: debugSet


From: Richard Frith-Macdonald
Subject: Fwd: debugSet
Date: Thu, 26 Jun 2003 10:23:35 +0100

Forgot to do 'reply all'

Begin forwarded message:

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]