----- Message d'origine ----
> De : Holger Hans Peter Freyther <[email protected]>
> À : Mathieu Suen <[email protected]>
> Cc : [email protected]
> 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 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to