Postituslista webobjects-dev@wocommunity.org Sanoma #223
Lähettäjä: OCsite <webobjects-dev@wocommunity.org>
Aihe: change toString for some classes?
Päiväys: Sun, 27 Jun 2021 15:41:32 +0200
Vastaanottaja: <webobjects-dev@wocommunity.org>
Hi there,

is there some Wonder (or NS- or Java-level) trick to “override” (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
Tilaa (FEED) Tilaa (DIGEST) Tilaa (INDEX) Peru tilaus Listmaster posti