FW: [Newbie] writing plain text to a file
FW: [Newbie] writing plain text to a file
- Subject: FW: [Newbie] writing plain text to a file
- From: "Mondragon, Ian" <email@hidden>
- Date: Mon, 03 Mar 2003 10:51:03 -0600
>
debugging? yes, it's used when you po an object, but it's also the method
>
called when you supply an object as the argument in a format statement for
>
%@. i've implemented -description methods in my objects for *years* and
>
found them to be nothing but usefull, especially since i'd rather have
>
information besides the class name and memory address alot of times.
>
*that*, in my opinion, can not only be "ugly", but more often than not,
>
useless.
>
>
- ian
>
>
-----Original Message-----
>
>
> use fprintf(fp, ...) to print to the file, and use [[obj description]
>
>cString] to get char* representations of objects (cuz the %@ format
>
string
>
>used in NSLog() just calls an object's -description method...which you
>
>should always implement in your own objects <wink>).
>
>
Wow that's ugly. No offense, but "description" is intended for
>
debugging, not as a string conversion function.
_______________________________________________
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.