[ANN] ObjectiveC Bridge

Alain Fischer mailinglist.fischer at bluewin.ch
Wed Apr 7 12:22:52 UTC 2004


Thanks for reporting.

I have not extensively tested the bridge, I prefered to release early
and fix bugs and add features as they are needed.

This will be fixed in a future release.

Alain


On 7 avr. 04, at 12:48, Avi Bryant wrote:

>
> On Apr 4, 2004, at 6:16 AM, Alain Fischer wrote:
>
>> Hi All Squeakers,
>>
>> Following the steps of Marcel Weiher, I have done a new ObjectiveC 
>> Bridge
>> with an ObjectiveCPlugin for the Mac OX X Unix VM 3.6g-2.
>
> Cool.  I managed to pop up a modal alert box with:
>
> |nsalert a|
> nsalert := ObjcBridge default getClass: 'NSAlert'.
> a := nsalert alloc init.
> a runModal
>
> However, when I tried this:
>
> a setMessageText: 'foo' asObjcProxy
>
> I got an error inside #coerce:to:.  I fixed it by changing the '@' 
> case to:
>
> {['@']->[(ByteArray new: 4) unsignedLongAt: 1 put: (anObject id 
> bitShift: 2); yourself]
>
> based on #coerce:from:.
>
> I also changed #sendToId:messageNamed:with: to immediately return nil 
> if returnLength is 0, which seems to happen with methods that return 
> void.
>
> No idea if I'm doing the right thing, but it seems to work.
>
> Cheers,
> Avi
>
>




More information about the Squeak-dev mailing list