Re: Can't modify EO objects! ARGH! =(
Re: Can't modify EO objects! ARGH! =(
- Subject: Re: Can't modify EO objects! ARGH! =(
- From: Jonathan Rochkind <email@hidden>
- Date: Thu, 17 Jul 2003 17:40:10 -0500
At 11:36 AM 7/17/2003 -1000, Art Isbell wrote:
[...]
| NSLog.DebugGroupEnterpriseObjects);
}
}
I find that rather than changing Java code, adding the launch
argument "-EOAdaptorDebugEnabled true" to be much more convenient. The
above approach can be more flexible in that you can turn on various types
of debugging, maybe via a custom launch argument to avoid the need to
modify code.
We're really talking about two differnet things here. EOAdaptorDebugEnabled
is the "old style" launch flag for turning on EOF debugging. I admit
that's the one I use too, because it's short and sweet and I can never
remember the proper "new style" stuff.
The "Debug Group" stuff is the "new style" NSLog flags for debugging. They
are more powerful and allow you to turn on and off debugging with finer
grained control. You _can_ specify these "new style" debug flags on the
command line too. You don't need to do it in code, you definitely can do it
on the command line. But it would take three or four or more command line
arguments to do what EOAdaptorDebugEnabled does in one.
The code sample which I didn't quote above fixes things so one command line
argument will do the equivelent of EOAdaptorDebugEnabled, but using the
"new" system. Fair enough. Either way will work fine.
But it's good to know what's going on, becuase the 'new' system is
occasionally useful for much more fine grained control of what objects are
logging in what ways, when you need it. So it's good to know it's there.
Although I confuess that I rarely find it useful, perhaps just because I
can never remember what all the various flags are.
--Jonathan
P.P.S. Hungarian naming is ugly and unnecessary in Java.
I think that some Hungarian naming is still useful in Java such
as to distinguish local from instance from global variables. But it's
always best to adhere to Java naming conventions like starting method
names with lowercase characters. Some like to use an underbar for the
initial character of private instance variables and methods.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.