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

Phil pbpublist at comcast.net
Sat Apr 28 05:36:55 UTC 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