From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Jan_Dj=C3=A4rv?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Feedback request for x_set_mouse_color on NextSTEP/MacOS Date: Mon, 18 Aug 2014 15:04:38 +0200 Message-ID: <4A401E63-BB83-45F5-B354-1E8F2ABC1684@swipnet.se> References: <53EC5A0D.2010104@swipnet.se> <5845089A-A99C-4D72-825F-80E8C9136F00@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-CB00EBD2-49D1-44BD-B366-D5B959BE9598 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408367121 7180 80.91.229.3 (18 Aug 2014 13:05:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2014 13:05:21 +0000 (UTC) Cc: Stefan Monnier , Emacs development discussions To: Joe Matarazzo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 18 15:05:14 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XJMcb-00046Q-6H for ged-emacs-devel@m.gmane.org; Mon, 18 Aug 2014 15:05:13 +0200 Original-Received: from localhost ([::1]:43782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJMca-0003GJ-MR for ged-emacs-devel@m.gmane.org; Mon, 18 Aug 2014 09:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJMcQ-00036k-3D for emacs-devel@gnu.org; Mon, 18 Aug 2014 09:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJMcF-0000dD-A6 for emacs-devel@gnu.org; Mon, 18 Aug 2014 09:05:01 -0400 Original-Received: from mailfe09.swip.net ([212.247.155.1]:43474 helo=swip.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJMcE-0000cr-Ud for emacs-devel@gnu.org; Mon, 18 Aug 2014 09:04:51 -0400 X-T2-Spam-Status: No, hits=0.9 required=5.0 tests=BAYES_50, HTML_MESSAGE,MIME_QP_LONG_LINE Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 351589157; Mon, 18 Aug 2014 15:04:43 +0200 Original-Received: from [172.16.2.149] (unknown [176.57.193.190]) (Authenticated sender: jhd) by hosdjarv.se (Postfix) with ESMTPSA id B19DB1A0260; Mon, 18 Aug 2014 13:04:42 +0000 (UTC) In-Reply-To: X-Mailer: iPhone Mail (11D257) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.247.155.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173739 Archived-At: --Apple-Mail-CB00EBD2-49D1-44BD-B366-D5B959BE9598 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi.=20 > 17 aug 2014 kl. 05:06 skrev Joe Matarazzo : >=20 >=20 >> On Sat, Aug 16, 2014 at 1:52 AM, Jan Dj=C3=A4rv wrot= e: >> Hi. >>=20 >> 15 aug 2014 kl. 20:46 skrev Stefan Monnier : >>=20 >> >> It is not requred that the same code works on both OSX and GNUStep, bu= t that >> >> there is an implementation for GNUStep and OSX. They might be quite >> >> different #ifdef... blocks of code. >> > >> > But if it can be "the same code", it's clearly a better choice. >> > >>=20 >> Yes, but a fast look at the API:s suggests that this is not possible. I w= ould like to be shown wrong though. > =20 > I've been having some early success creating a fascimile of the system cur= sors by drawing into > a custom image rep and then tying it to a new cursor via -initWithImage:ho= tSpot:. I can duplicate > the vector graphics and fill/stroke the paths to the requested colors. >=20 > What do you think of this approach? Sounds like a good plan.=20 Jan D= --Apple-Mail-CB00EBD2-49D1-44BD-B366-D5B959BE9598 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi. 

17 aug 2014 kl= . 05:06 skrev Joe Matarazzo <j= oe.matarazzo@gmail.com>:


On Sat,= Aug 16, 2014 at 1:52 AM, Jan Dj=C3=A4rv <jan.h.d@swipnet.se>= wrote:
Hi.

15 aug 2014 kl. 20:46 skrev Stefan Monnier <monnier@iro.umontreal.ca>:

>> It is not requred that the same code works on both OSX and GNUStep,= but that
>> there is an implementation for GNUStep and OSX.  They might be= quite
>> different #ifdef... blocks of code.
>
> But if it can be "the same code", it's clearly a better choice.
>

Yes, but a fast look at the API:s suggests that this is not poss= ible.  I would like to be shown wrong though.

      &nbs= p;
 
I've been having some ear= ly success creating a fascimile of the system cursors by drawing into
<= div>a custom image rep and then tying it to a new cursor via -initWithImage:= hotSpot:. I can duplicate
the vector graphics and fill/stroke the paths to the requested colors.<= /div>

What do you think of this approach?

Sounds like a good plan. 


     Jan D
= --Apple-Mail-CB00EBD2-49D1-44BD-B366-D5B959BE9598--