[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re : Re : [Help-smalltalk] Passing a struct to a c-callout
From: |
Mathieu Suen |
Subject: |
Re : Re : [Help-smalltalk] Passing a struct to a c-callout |
Date: |
Fri, 18 Feb 2011 09:54:24 +0000 (GMT) |
----- Message d'origine ----
> De : Holger Hans Peter Freyther <address@hidden>
> À : Mathieu Suen <address@hidden>
> Cc : address@hidden
> Envoyé le : Ven 18 février 2011, 10h 34min 55s
> Objet : Re: Re : [Help-smalltalk] Passing a struct to a c-callout
>
> 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).
I do not have error. instead I get those NSlog:
2011-02-18 10:46:56.986 gst[60568:903] NSWindow does not support nonactivating
panel styleMask 0x80
2011-02-18 10:46:56.988 gst[60568:903] NSWindow does not support HUD styleMask
0x2000
styleMask is 0x0F in my example.
>
> holger
>
- [Help-smalltalk] Passing a struct to a c-callout, Mathieu Suen, 2011/02/17
- Re: [Help-smalltalk] Passing a struct to a c-callout, Holger Hans Peter Freyther, 2011/02/17
- Re: [Help-smalltalk] Passing a struct to a c-callout, Mathieu Suen, 2011/02/17
- Re: [Help-smalltalk] Passing a struct to a c-callout, Holger Hans Peter Freyther, 2011/02/17
- Re : [Help-smalltalk] Passing a struct to a c-callout, Mathieu Suen, 2011/02/18
- Re: Re : [Help-smalltalk] Passing a struct to a c-callout, Holger Hans Peter Freyther, 2011/02/18
- Re : Re : [Help-smalltalk] Passing a struct to a c-callout,
Mathieu Suen <=
- Re: Re : Re : [Help-smalltalk] Passing a struct to a c-callout, Holger Hans Peter Freyther, 2011/02/18
- Re : [Help-smalltalk] Passing a struct to a c-callout, Mathieu Suen, 2011/02/18
- Re: Re : [Help-smalltalk] Passing a struct to a c-callout, Holger Hans Peter Freyther, 2011/02/18
- Re : [Help-smalltalk] Passing a struct to a c-callout, Mathieu Suen, 2011/02/18