From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Matarazzo Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Feedback request for x_set_mouse_color on NextSTEP/MacOS Date: Mon, 25 Aug 2014 22:48:25 -0700 Message-ID: References: <53EC5A0D.2010104@swipnet.se> <5845089A-A99C-4D72-825F-80E8C9136F00@swipnet.se> <4A401E63-BB83-45F5-B354-1E8F2ABC1684@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba614f0c241dfe050181dae2 X-Trace: ger.gmane.org 1409032133 2893 80.91.229.3 (26 Aug 2014 05:48:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2014 05:48:53 +0000 (UTC) Cc: Stefan Monnier , Emacs development discussions To: =?UTF-8?Q?Jan_Dj=C3=A4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 26 07:48:44 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 1XM9cY-0005Vq-HD for ged-emacs-devel@m.gmane.org; Tue, 26 Aug 2014 07:48:42 +0200 Original-Received: from localhost ([::1]:51752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM9cX-0006To-LF for ged-emacs-devel@m.gmane.org; Tue, 26 Aug 2014 01:48:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM9cK-0006Ti-2L for emacs-devel@gnu.org; Tue, 26 Aug 2014 01:48:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XM9cJ-0006FJ-81 for emacs-devel@gnu.org; Tue, 26 Aug 2014 01:48:28 -0400 Original-Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]:38467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM9cJ-0006F5-2V for emacs-devel@gnu.org; Tue, 26 Aug 2014 01:48:27 -0400 Original-Received: by mail-ig0-f181.google.com with SMTP id h3so3966758igd.2 for ; Mon, 25 Aug 2014 22:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7xATfgj8+g7NlnePUsLspnlMlEyANlHqLXjN9mf36qI=; b=WPcBz35qOMxkDxGtQ/Df9JVfdj62sSuLu3a51zouoyk0+jyjDxQyH6JuvGBXmGKuoc znnoDJp7C52jbyvIzsPi7P11saRqtmKXrlcQmcSatEVTr25CSnZe14tXGB8kECvKnA/u /NJKt8bl+fJeosa1Lki/8SdaNAwjwOYv2C8Q7VNcV/5DFaNTVZfubaZMx4ru2ug610/4 9KuK+4kFcDYO4pZ8jCncks7N7U1o1V3gNexS3bMe5yN1A6WET1p4UXgu/i+Zzo2VIHyB RLq3D9BFTbkuwGeSRsZBX9pc3sE0AnJwm3vUcp+nDhHGt2M9pS7BHjUUkTm+S2/mPlHg Md1A== X-Received: by 10.42.62.6 with SMTP id w6mr27927688ich.24.1409032105760; Mon, 25 Aug 2014 22:48:25 -0700 (PDT) Original-Received: by 10.107.157.200 with HTTP; Mon, 25 Aug 2014 22:48:25 -0700 (PDT) In-Reply-To: <4A401E63-BB83-45F5-B354-1E8F2ABC1684@swipnet.se> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::235 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:173830 Archived-At: --90e6ba614f0c241dfe050181dae2 Content-Type: text/plain; charset=UTF-8 Some implementation questions: 1. The source tree includes a "left pointer" xbm that I was able to leverage for the arrow cursor. However, it doesn't visually match the Mac OS system arrow cursor. Also, it doesn't scale well if the Accessibility panel mouse cursor size slider is used to grow the cursor size. I've found that you need to provide an NSImage with multiple higher resolution NSImageRep's underneath to get nice scaled cursors. Would it be preferable to use the included src/bitmaps/leftptr.xbm and adhere to more of an X display, or adhere more to the style of the GNU/NeXTStep cursors and roll my own bitmap? (This is for the "nontext_cursor" in nsfns.m) 2. The source tree doesn't have an equivalent i-beam cursor that MacOS uses for the text_cursor, that I could see. If I end up creating one to match the system style and also provide color control, it influences the answer to #1, IMO. What guidance can the dev-list offer on this point? Add a new XBM to src/bitmaps or make it NS-specific, with the added scaling goodness that follows? Thanks, Joe --90e6ba614f0c241dfe050181dae2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Some implementation questions:<= /div>

1. The= source tree includes a "left pointer" xbm that I was able to lev= erage for the arrow cursor. However,
it doesn't visually match the Mac OS system = arrow cursor. Also, it doesn't scale well if the Accessibility panel
mouse cursor size slider is used to grow the = cursor size. I've found that you need to provide an NSImage
with multiple higher resolution NSImageRep's= underneath to get nice scaled cursors.
Would it be preferable to use the include= d src/bitmaps/leftptr.xbm and adhere to more of an X display, or
adhere more to the style of the GNU/NeXTStep cur= sors and roll my own bitmap? (This is for the "nontext_cursor"
in nsfns.m)
<= br>
2. The source tree doesn't have an equ= ivalent i-beam cursor that MacOS uses for the text_cursor, that I could
see. If I end up creating one to match the sys= tem style and also provide color control, it influences the answer to
#1, IMO. What guidance can the dev-list offer on= this point? Add a new XBM to src/bitmaps or make it=C2=A0
NS-specific, with the added scaling goodness that follows?=

Thanks,
Joe
--90e6ba614f0c241dfe050181dae2--