Skip navigation.
 
mlRe: class_addMethod and type encodings.
FROM : Keith Duncan
DATE : Fri May 02 12:15:53 2008

> 3) The only doco I can find for type encodings in ObjC is the 
> "Runtime System > Type Encodings" page. Is there any other doco I 
> should be reading?


You can use the @encode() helper. This is also useful when using 
NS(U)Integer as it will encode the correct type for 32/64 bit 
depending on the compile without you having to worry about changing 
the strings yourself.

Keith

Related mailsAuthorDate
mlclass_addMethod and type encodings. Ross Tulloch May 2, 04:29
mlRe: class_addMethod and type encodings. Jens Alfke May 2, 06:21
mlRe: class_addMethod and type encodings. Keith Duncan May 2, 12:15