From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: NS port and fancy OS X scrollbars Date: Sun, 28 Feb 2016 15:04:42 +0200 Message-ID: References: <20160223232744.GA73973@galloway.local> <20160224212138.GB81983@galloway.idiocy.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140b472f45c7e052cd42c37 X-Trace: ger.gmane.org 1456664702 562 80.91.229.3 (28 Feb 2016 13:05:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2016 13:05:02 +0000 (UTC) Cc: Anders Lindgren , emacs-devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 28 14:05:02 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 1aa11x-0000rw-LS for ged-emacs-devel@m.gmane.org; Sun, 28 Feb 2016 14:05:01 +0100 Original-Received: from localhost ([::1]:58954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa11w-0006bT-QZ for ged-emacs-devel@m.gmane.org; Sun, 28 Feb 2016 08:05:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa11g-0006bA-NL for emacs-devel@gnu.org; Sun, 28 Feb 2016 08:04:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aa11f-0002fq-JT for emacs-devel@gnu.org; Sun, 28 Feb 2016 08:04:44 -0500 Original-Received: from mail-io0-x232.google.com ([2607:f8b0:4001:c06::232]:33342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa11f-0002fm-BV for emacs-devel@gnu.org; Sun, 28 Feb 2016 08:04:43 -0500 Original-Received: by mail-io0-x232.google.com with SMTP id z135so163178700iof.0 for ; Sun, 28 Feb 2016 05:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=4JYzwZ/Xgl0i2rhMDZGyDuWxDUKmpIg4shh30L8nWwQ=; b=tDg7hH4pPKkT7Zce/YeACpJVdRMJgh832EE5vRQHdFcjwCfkowilWkycmlb4vBtIeB eFHP2hk/h7cYHlo+ynwrAxem0CIwCaQZYUpvTKWLoHycgqAkCIvQO8qR+cISczkmZ5T8 ZF0FDqLIj9N2d56vcZ05rkfD5euyXprUdByAKV/ezHrII7cN+Qofh8AV/YoLBIOGtMV2 ZBtsPceAknUJhVfe1/8R6im0RDXeJKM6Ud06xIkiYur+JODuCk3YuqUo/8hlyQawTopC iEJt6O3qTXujyUycdNq6XrOKbajVecuEK+BxviIhT56Ac1wVl94pxlPC1qsottm0TSAi BHwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=batsov-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=4JYzwZ/Xgl0i2rhMDZGyDuWxDUKmpIg4shh30L8nWwQ=; b=BbgrGhi0pJzc8sKm7IzcMTJs8L7GjF6Hz6EVuR2KsAu32C4DwjcfCRUt+l6q2anEjD O2Ddn7YwYIXlnU0c7MzHOsQatiWk18JTYjF0DfbvNV/GFP1tmvw3YP2Kxnt85Z+NLZF1 IO4NgfB1JgHbBsrYNzrw6ZwxHR0VAvXp6b1eZXpiJ1twntQCasQ3PS877EHXBb+V8ww6 XuEnnhVSt7UDpzBO6w3QoRRszCi9I5mN6ch6NAqhq+c6A6jf4rL3Ne8Pb8hEJSgTB2t8 quV5oQoLpQcdXfWZ6jrBKmCSey/qSv6hrBysKs7jp+dondzUWPh7VtMVOw9OH8Kigmd+ reIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=4JYzwZ/Xgl0i2rhMDZGyDuWxDUKmpIg4shh30L8nWwQ=; b=liOpQs/5SLFBijPs78Uvilq1Ep6gOLP/6ceCniVSdIwiT76bADorw7S7fp2URjXqwi 0cFFUGYS9GeEUR1vdechTua0HbmgCMFgC8kZAeWHTWRhsMWWHGHwrcMYSvGDixw3CD5e mLSxhKQWMxmvS6VHsopxuQzXFhkvzLZglSesbiugbSubi9p8ZYJrc2qi00T7W4+I+x7K 09nl4riAXI23Ks4nPTE9povVhVwNGnHW4sYb0l3h5U+ay5ZLX8ynfo7TxlzIFiaGgKmz VPGdpLqADvTtGIZUiYekaQXDJFwL/RK8fLqzsElPiYymOfeVUo3SWmyAzf6nC/w4sQwt hcsw== X-Gm-Message-State: AG10YOTWDFsjGhZVbqPSb82OGiPpEuMqwEQsMCCaiFnohX9IX7ZxMW43sbInZyPzyTvj5asVniYIZ2Wkls5oVA== X-Received: by 10.107.157.70 with SMTP id g67mr14069427ioe.38.1456664682451; Sun, 28 Feb 2016 05:04:42 -0800 (PST) Original-Received: by 10.107.8.143 with HTTP; Sun, 28 Feb 2016 05:04:42 -0800 (PST) In-Reply-To: <20160224212138.GB81983@galloway.idiocy.org> X-Google-Sender-Auth: qFktF_pKQx1VZe4Se2pPhK2IsXE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::232 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:200756 Archived-At: --001a1140b472f45c7e052cd42c37 Content-Type: text/plain; charset=UTF-8 Looking forward to seeing this implemented! On 24 February 2016 at 23:21, Alan Third wrote: > 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 > > --001a1140b472f45c7e052cd42c37 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Looking forward to seeing this implemented!

On 24 February 2016 at 23:= 21, Alan Third <alan@idiocy.org> wrote:
On Tue, Feb 23, 2016 at 11:27:44PM +0000, Al= an Third wrote:
> As far as I can tell the 'right' way to do it is to create an<= br> > NSScrollView and put your buffer content into another NSView within > it. This seems to give you native scrollbars for a lot less work than<= br> > 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 importan= t
> 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


--001a1140b472f45c7e052cd42c37--