From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: NS port and fancy OS X scrollbars Date: Wed, 24 Feb 2016 21:21:38 +0000 Message-ID: <20160224212138.GB81983@galloway.idiocy.org> References: <20160223232744.GA73973@galloway.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1456348923 2958 80.91.229.3 (24 Feb 2016 21:22:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 21:22:03 +0000 (UTC) Cc: Anders Lindgren To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 24 22:21:58 2016 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 1aYgsg-00009Y-NI for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 22:21:58 +0100 Original-Received: from localhost ([::1]:38520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYgsg-0004ha-2h for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 16:21:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYgsR-0004gp-OK for emacs-devel@gnu.org; Wed, 24 Feb 2016 16:21:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYgsQ-0001Ng-PX for emacs-devel@gnu.org; Wed, 24 Feb 2016 16:21:43 -0500 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:38789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYgsQ-0001NV-I5 for emacs-devel@gnu.org; Wed, 24 Feb 2016 16:21:42 -0500 Original-Received: by mail-wm0-x22a.google.com with SMTP id a4so1240024wme.1 for ; Wed, 24 Feb 2016 13:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=y8fk9ApkT2Fh2a0WK/BtzGd9nnu7zOFAzfHOkD2pOCA=; b=xe6JTe3KY8lbnePjCqEOSGGMEIepO3hTmOSFfH+oTA0Cv4hW6Ccz0Pw/rFY1PgeJ7G h6d8FOVizwsKymsrx9Ty0fQ0VvLt3QDVN1kZfkPRHcd3DayfPMWJrAAifH+ispPMa7Ii AVZ89HzZ21uB8JiyRbNKfUUq2m+eqqXyX+hjgEVhb0eIaSzrRCPG1oXMg5/JBzg9ugsj a76qrbtTwlBMkh9rMOxnpkew24o/Hwt9eidjO/xx14FMDgvaaDfT1fsDV1S1c/YFfjlm 3IBRD0PnTFX1wjEPD8cxVmRSYBR/ZT/S6f78EAX0Z4BR2KrV/Z/jPupoUdUKnYtruNkO h5tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=y8fk9ApkT2Fh2a0WK/BtzGd9nnu7zOFAzfHOkD2pOCA=; b=DcZkkhU4jKi2dUEAk7O8yXp3dELQrqAod7/1dZqNYnUwho5PLqk2WC0jEDNItrBrUS 4vADjrEaVVrukZa5Oi0crrb/S3AJWQw3jEslpu7b0FA/gSJrpy39JVUQaI2M+qteSLcQ OInUUTiKldirE8fq6AUppj2ugYOzBn7RM4QvsH6GbHVhComceTSrP3rGCHeO7UBhC3/X Qx1rTbKZuenGQKBp5UwiYyxurXoeGK67hH987LlSfOHbXQJKAEj5uN0LdmdnwH2G+Y+J bOYvjH3QC2DAy5rEztSDfAqeXU0FF+MQfBoyP9kMsY6o6oVDu17CL48Ta8TOOUCJsTPT p7Zg== X-Gm-Message-State: AG10YOSx3Zk3hsWKCslVK8O1NSHGSjqoPC3bMkyMfUxUZBCdY0ADFc41mOtkCLnljtlfgw== X-Received: by 10.194.22.68 with SMTP id b4mr40076139wjf.158.1456348901983; Wed, 24 Feb 2016 13:21:41 -0800 (PST) Original-Received: from galloway.idiocy.org (a.2.5.7.d.e.a.9.3.0.9.9.3.c.1.b.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:b1c3:9903:9aed:752a]) by smtp.gmail.com with ESMTPSA id n10sm3724194wjf.28.2016.02.24.13.21.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2016 13:21:41 -0800 (PST) Content-Disposition: inline In-Reply-To: <20160223232744.GA73973@galloway.local> User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22a 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:200642 Archived-At: On Tue, Feb 23, 2016 at 11:27:44PM +0000, Alan Third wrote: > As far as I can tell the 'right' way to do it is to create an > NSScrollView and put your buffer content into another NSView within > it. This seems to give you native scrollbars for a lot less work than > is being done at the moment. However I think we'd lose the ability to > put the vertical scrollbars on the left. I don't know how important > that feature is. > > I think there's a bigger problem, though. It looks to me like the mode > line is currently drawn into the same NSView as the rest of the > buffer, so just wrapping the current NSView with an NSScrollView would > result in the vertical scrollbar overlapping the mode line, and the > horizontal scrollbar below it. Ignore this. After a bit more investigation it looks like it's perfectly easy to position the NSScrollers anywhere within an NSScrollView, so I'll just shut up now and try implementing it. -- Alan Third