help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re : [Help-smalltalk] Passing a struct to a c-callout


From: Holger Hans Peter Freyther
Subject: Re: Re : [Help-smalltalk] Passing a struct to a c-callout
Date: Fri, 18 Feb 2011 10:34:55 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.7

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]