X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] From: "OCsite" Received: from smtp-beta-2.zoner.com ([217.198.120.71] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 26075560 for webobjects-dev@wocommunity.org; Sun, 27 Jun 2021 15:41:54 +0200 Received-SPF: none receiver=post.selbstdenker.com; client-ip=217.198.120.71; envelope-from=ocs@ocs.cz Received: from smtp.zoner.com (smtp.zoner.com [217.198.120.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-beta-2.zoner.com (Postfix) with ESMTPS id A5DA01800153; Sun, 27 Jun 2021 15:41:33 +0200 (CEST) Received: from macbook-pro.ocsluj (unknown [77.240.103.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ocs@ocs.cz) by smtp.zoner.com (Postfix) with ESMTPSA id 51B4B3000068; Sun, 27 Jun 2021 15:41:33 +0200 (CEST) Content-Type: multipart/alternative; boundary="Apple-Mail=_3BF372B9-DC70-44FD-AEDE-D573012A0A3F" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\)) Date: Sun, 27 Jun 2021 15:41:32 +0200 Subject: change toString for some classes? Message-Id: <6A663186-2F64-4B52-8ED2-A02839B3673A@ocs.cz> To: webobjects-dev@wocommunity.org X-Mailer: Apple Mail (2.3608.120.23.2.6) --Apple-Mail=_3BF372B9-DC70-44FD-AEDE-D573012A0A3F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi there, is there some Wonder (or NS- or Java-level) trick to =E2=80=9Coverride=E2=80= =9D (for the original class; in ObjC I would simply swizzle the method) = toString for some classes? Namely, in my current application, I would = need that - NSTimestamps always return millis - NSData never return contents, just length. Thanks! OC= --Apple-Mail=_3BF372B9-DC70-44FD-AEDE-D573012A0A3F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = there,

is there some = Wonder (or NS- or Java-level) trick to =E2=80=9Coverride=E2=80=9D (for = the original class; in ObjC I would simply swizzle the method) toString for some classes? Namely, in my current = application, I would need that

- NSTimestamps always = return millis
- NSData never = return contents, just length.

Thanks!
OC
= --Apple-Mail=_3BF372B9-DC70-44FD-AEDE-D573012A0A3F--