• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FW: [Newbie] writing plain text to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: [Newbie] writing plain text to a file
  • Next by Date: How to add a property to the address book?
  • Previous by thread: RE: [Newbie] writing plain text to a file
  • Next by thread: Re: [Newbie] writing plain text to a file
  • Index(es):
    • Date
    • Thread