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 19:34:57 +0000 Message-ID: <20160224193457.GA81983@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 1456342513 10073 80.91.229.3 (24 Feb 2016 19:35:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 19:35:13 +0000 (UTC) Cc: emacs-devel To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 24 20:35:07 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 1aYfDG-0003lr-TJ for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 20:35:07 +0100 Original-Received: from localhost ([::1]:37934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYfDF-00022e-WC for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 14:35:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYfDC-00022S-U5 for emacs-devel@gnu.org; Wed, 24 Feb 2016 14:35:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYfDB-0004kH-TO for emacs-devel@gnu.org; Wed, 24 Feb 2016 14:35:02 -0500 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:36555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYfDB-0004jd-M8 for emacs-devel@gnu.org; Wed, 24 Feb 2016 14:35:01 -0500 Original-Received: by mail-wm0-x234.google.com with SMTP id g62so288242420wme.1 for ; Wed, 24 Feb 2016 11:35:01 -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-disposition:in-reply-to:user-agent; bh=SyX1aqPajr91MpoJZ02oz4DtKbYTkBThHnOsWh65HhQ=; b=bbTJT4bDmgxG/hlLgUeRVXrYdT0AuGiXrsaJpXQjKP8/vHQ24mZuu/5KcYPK6NGkH3 nREVroIsl2Ebt3SYwn+j07J6Y9RDGbMm91r+Tg7Cir96flRBQCs/OkMUjD27D84iPluN P1zQieK/O45gXrOB2zNKepo9RQ9BHZmLk9Zgf/v64eSdZwhVqXbnuFGu6jakd/bROhKx t4k3M6ZolvIL9Xy+FbF1/SBEQ7PC/mM9JIDFvPqHp5YxtPPfOkGBEMdDrRbk1E0sHIHn pAfqX6xWMiNit9qK48D2tdku5AFXN7zGJ1+MScqIp2dNXqobiTF3b7XFCRXk4it24bz6 Y/sg== 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-disposition:in-reply-to:user-agent; bh=SyX1aqPajr91MpoJZ02oz4DtKbYTkBThHnOsWh65HhQ=; b=IRd8MZdGJOn+zdsq3S48deHusIOqcit1hehLmFougktDB4k2NYWM21J6lvEewOMCMk fWV9b5Ufhv2/AN0yiQRPpoxsI4obu7AqQ4CWefIP4mfNZ2wi3aBK3g8KyVstVWHyC8cR th9B/5fLUDVgirZlhVxmQ1fvsH39PcyUfCmVM20KymeZkrVztiqZKzRhYML3f5l9ZVxn SBM3f+E5TWQBJ33ghydNdN7hZO2Ws/aOFY6bviOohguhlnZ3A5WadFhr+DLmHXJGd33d vJwZaCC0nNpcx/gPxvgiHQyB1wKSGVGm1apNJCN3SRF8/NVjxArnLd+g4y7OFCRi3+pa A5Lg== X-Gm-Message-State: AG10YOQXmgrDDNcQ9PVVoC1w001S6gDqAIWdz+d4Rji5hooLvz/RWcU0S1Pi5P6wRZ8Iig== X-Received: by 10.28.88.15 with SMTP id m15mr24903286wmb.60.1456342500975; Wed, 24 Feb 2016 11:35:00 -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 w66sm4921766wmd.2.2016.02.24.11.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2016 11:35:00 -0800 (PST) Content-Disposition: inline In-Reply-To: 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::234 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:200638 Archived-At: On Wed, Feb 24, 2016 at 10:56:36AM +0100, Anders Lindgren wrote: > It's hard to know. One way to handle this is to keep both implementations > around. Clearly, the combination of having scroll bars to the left and make > them floating won't be supported. This might be needed anyway since I'm not > sure if GNUStep supports floating scroll bars. The good side of this is that if we did implement an NSScrollView to handle the scroll bars then GNUStep and older versions of OS X that don't support the floating versions will fall-back to the "legacy" scroll bars. At least, that's how the documentation reads to me. It would also mean that whether the scroll bars were floating or legacy would depend on the system setting in system preferences -> general. Although we could force them back to legacy at runtime if required. Here's a wee bit of information on when you do and dont' get floating scrollbars: https://developer.apple.com/library/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_7.html#//apple_ref/doc/uid/TP40010355-SW3 (search for "overlay scrollbars") > Am I right about this? If so then it seems the only way to get the > > floating scrollbars would be to recreate the effect ourselves, which I > > suspect is rather a lot of work. > > > > If you are correct, then I would suggest that we shouldn't pursue this. If > it's not possible to implement this in a clean OS friendly manner, we risk > ending up with complex, fragile, code that might not work on future OS X > versions. I think we need to find someone who knows a bit more about exactly how Emacs draws windows or I need to just keep looking until I figure out how it works. Thanks! -- Alan Third