From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1244.3) From: Jeff Sickel In-Reply-To: Date: Tue, 6 Sep 2011 11:26:56 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <3FAAAF86-37C3-4352-8A77-A954C7616467@corpus-callosum.com> References: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] plan9port: cocoa programmer needed Topicbox-Message-UUID: 1a03687c-ead7-11e9-9d60-3106f5b1d025 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 = everything. 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; =20 - CGWarpMouseCursorPosition(q); + CGWarpMouseCursorPosition(NSPointToCGPoint(q)); =20 // race condition mpos =3D p; On Sep 6, 2011, at 11:03 AM, Russ Cox wrote: > Try adding >=20 > # HA HA HA. Apple broke things again. > [ "$SYSNAME" !=3D "Darwin" ] || ranlib $2 >=20 > to the bottom of $PLAN9/bin/9ar >=20 >=20