On 02/18/2011 10:14 AM, Mathieu Suen wrote:

> CStruct subclass: NSRect [
>     <declaration: #( (#x #double) (#y #double) (#w #double) (#h #double) )>
> ]
> 
> But the invocation doesn't work:
> 
> nsRect :=  NSRect new.
>   nsRect x value: 0.0.
>   nsRect y value: 0.0.
>   nsRect w value: 100.0.
>   nsRect h value: 100.0
> ObjcRuntime  objcMsgSend: nsWindow selector: initSeld args: {nsRect. 15. 2. 
> 1}.


ah okay, what is the error you get? do you get any? I think the objc runtime
on NeXT and GNU is different, but I will try your example (or come up with a
standalone example).

holger

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to