[Openmcl-devel] Specifying data types for calls via the Obj-C bridge with a variable number of arguments

Phil pbpublist at comcast.net
Fri Apr 27 22:36:55 PDT 2007


I'm not having much luck in specifying the required data types for  
methods that accept vargs... any pointers on specifying the valid  
types are appreciated.

(objc:send (objc:@class "NSString") "stringWithFormat:" #@"Testing: % 
d" (:integer 1)) ; Seems simple enough

(objc:send (objc:@class "NSString") "stringWithFormat:" #@"Testing: % 
s" (:string "string")) ; OK, maybe not

(objc:send (objc:@class "NSString") "stringWithFormat:" #@"Testing: % 
@" (??? #@"string")) ; No idea

Thanks,
Phil



More information about the Openmcl-devel mailing list