From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <3FAAAF86-37C3-4352-8A77-A954C7616467@corpus-callosum.com> References: <3FAAAF86-37C3-4352-8A77-A954C7616467@corpus-callosum.com> Date: Tue, 6 Sep 2011 10:21:49 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf300512f218f44c04ac491096 Subject: Re: [9fans] plan9port: cocoa programmer needed Topicbox-Message-UUID: 1a097136-ead7-11e9-9d60-3106f5b1d025 --20cf300512f218f44c04ac491096 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable It built ok here, but sam, and acme aren't doing anything terribly interesting (well maybe it is interesting, but they're crashing, presumably logging something to somewhere interesting). I'll keep poking when I'm not at work later. Dave On Tue, Sep 6, 2011 at 9:26 AM, Jeff Sickel wrote= : > Nice handling of the Glenda icon. > > Using Xcode 4.1 on Lion I get different errors (libstdio is another probl= em > as FPdbleword is no longer defined) so I'm still not rebuilding everythin= g. > 9c picks up: > > gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00= ) > > > 9c -DMULTITOUCH -o cocoa-screen-objc.o cocoa-screen.m > cocoa-screen.m:712: error: cannot convert to a pointer type > cocoa-screen.m:712: error: incompatible type for argument 1 of > =91CGWarpMouseCursorPosition=92 > > Corrected that would be: > % hg diff . > diff -r d92a37e64563 src/cmd/devdraw/cocoa-screen.m > --- a/src/cmd/devdraw/cocoa-screen.m Tue Sep 06 10:10:43 2011 -0400 > +++ b/src/cmd/devdraw/cocoa-screen.m Tue Sep 06 11:08:04 2011 -0500 > @@ -709,7 +709,7 @@ > q =3D [win.obj convertBaseToScreen:q]; > q.y =3D r.size.height - q.y; > > - CGWarpMouseCursorPosition(q); > + CGWarpMouseCursorPosition(NSPointToCGPoint(q)); > > // race condition > mpos =3D p; > > > On Sep 6, 2011, at 11:03 AM, Russ Cox wrote: > > > Try adding > > > > # HA HA HA. Apple broke things again. > > [ "$SYSNAME" !=3D "Darwin" ] || ranlib $2 > > > > to the bottom of $PLAN9/bin/9ar > > > > > > > --20cf300512f218f44c04ac491096 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable It built ok here, but sam, and acme aren't doing anything terribly inte= resting (well maybe it is interesting, but they're crashing, presumably= logging something to somewhere interesting).

I'll keep pok= ing when I'm not at work later.

Dave

On Tue, Sep= 6, 2011 at 9:26 AM, Jeff Sickel <jas@corpus-callosum.com> wrote:
Nice handling of the Glenda icon.

Using Xcode 4.1 on Lion I get different errors (libstdio is another problem= as FPdbleword is no longer defined) so I'm still not rebuilding everyt= hing. =A09c picks up:

gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)<= br>

9c -DMULTITOUCH -o cocoa-screen-objc.o cocoa-screen.m
cocoa-screen.m:712: error: cannot convert to a pointer type
cocoa-screen.m:712: error: incompatible type for argument 1 of =91CGWarpMou= seCursorPosition=92

Corrected that would be:
% hg diff .
diff -r d92a37e64563 src/cmd/devdraw/cocoa-screen.m
--- a/src/cmd/devdraw/cocoa-screen.m =A0 =A0Tue Sep 06 10:10:43 2011 -0400<= br> +++ b/src/cmd/devdraw/cocoa-screen.m =A0 =A0Tue Sep 06 11:08:04 2011 -0500<= br> @@ -709,7 +709,7 @@
=A0 =A0 =A0 =A0q =3D [win.obj convertBaseToScreen:q];
=A0 =A0 =A0 =A0q.y =3D r.size.height - q.y;

- =A0 =A0 =A0 CGWarpMouseCursorPosition(q);
+ =A0 =A0 =A0 CGWarpMouseCursorPosition(NSPointToCGPoint(q));

=A0// =A0 =A0 race condition
=A0 =A0 =A0 =A0mpos =3D p;


On Sep 6, 2011, at 11:03 AM, Russ Cox wrote:

> Try adding
>
> # HA HA HA. =A0Apple broke things again.
> [ "$SYSNAME" !=3D "Darwin" ] || ranlib $2
>
> to the bottom of $PLAN9/bin/9ar
>
>



--20cf300512f218f44c04ac491096--