[Openmcl-devel] Sending Variable-Arity Cocoa Messages
Randall Beer
beer at eecs.cwru.edu
Tue Apr 12 19:02:24 PDT 2005
:array-with-objects is certainly predefined as a variable arity message
in the bridge.
I'm headed out of town for a few days, so if there is some problem with
the bridge's handling of variable arity messages, I'll try to get to it
over the weekend.
Randy
On Mar 2, 2005, at 1:24 PM, markus64 at gmx.ch wrote:
> Hi. I'm trying to send variable-arity Cocoa messages using OpenMCL
> 0.14.2-p1 on OS X, but I just don't seem to succeed. I did read
> section 10.3.3 of the manual, and the stringWithFormat example does
> work, but I can't seem to get anything else to work :-)
>
> How would I, for example, create a NSArray using +arrayWithObjects?
> (ccl::send (find-class 'ns:ns-array) :objects (:double-float foo
> :double-float bar)) gives me "Undefined function :DOUBLE-FLOAT"
> errors. Using (DEFINE-VARIABLE-ARITY-MESSAGE "arrayWithObjects:")
> didn't help either (same error), although I would think that shouldn't
> be necessary anyway, since the manual claims that "The standard
> variable arity messages in Cocoa are predeclared by the bridge".
>
> I have the same problem when trying to send other variable-arity
> messages from OpenMCL, e.g. NSDictionary's
> +dictionaryWithObjectsAndKeys. How am I supposed to do this?
>
> Any help is appreciated,
>
> Regards, Markus
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>
More information about the Openmcl-devel
mailing list