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: NS port and fancy OS X scrollbars Date: Tue, 23 Feb 2016 23:27:44 +0000 Message-ID: <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 1456270074 26057 80.91.229.3 (23 Feb 2016 23:27:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 23:27:54 +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 00:27:53 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 1aYMMy-0000JZ-U9 for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 00:27:53 +0100 Original-Received: from localhost ([::1]:60484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYMMy-0007we-8n for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2016 18:27:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYMMv-0007wQ-5U for emacs-devel@gnu.org; Tue, 23 Feb 2016 18:27:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYMMu-0000kf-7y for emacs-devel@gnu.org; Tue, 23 Feb 2016 18:27:49 -0500 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:33268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYMMu-0000ka-0E for emacs-devel@gnu.org; Tue, 23 Feb 2016 18:27:48 -0500 Original-Received: by mail-wm0-x231.google.com with SMTP id g62so222218884wme.0 for ; Tue, 23 Feb 2016 15:27:47 -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:mime-version:content-type :content-disposition:user-agent; bh=0nr8cqYaIYbc6EpM395olO0MpR1I4Jp58yV2fhOtQLA=; b=RaSAO0jNQdsd/5zQLY05RGdCc2+lypWgjwBz4CKPQk9sTU/MbpY+YCiZezIWipmeS9 1SMXIY8v+xRNYa2bbRPdNsL9TxmQckZoXLsqylYBX8oEjgQLTdb9L0SFnTtf0hsqnCQy LpXH2qKhCmhpmki9P8NZVjG6q3L4s6eWd2le33Id5TmNTiEk7srWptRHSkvSZJNM0Wzx QrHVR3WqoImUY8ueRRMb3sfY6P995ZG0HM5hrOFf7EFV/+n+KIbVeou6tTK1JT5uyf22 0Llyh6y9iuTdpbimO+SoVo3AMdK/mCwknGpL9OE8T9PB9fdB16F/Zsc/AMfocw24ZelL L3lA== 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 :mime-version:content-type:content-disposition:user-agent; bh=0nr8cqYaIYbc6EpM395olO0MpR1I4Jp58yV2fhOtQLA=; b=gqtyBs+fWYTCPmK0DpmxtQqQ5h4n8lTNV5o4tqG0CqFIvoVw1LFdIHmV25fuMrrWlV m+uOVXs8vzEPAr+yNokcMwWwzeX48QngWZoPCQhdP9sppso5jH3rvM4sQ4eNBqqOZq7L zjOhN21QYeWdT6ESt5zzKNZniwaSriYfI0iVKKYYIFnZuNFd9QFZrR2T9mn1JFUoEXIt YoJQsjPg6YwB0HU3tT0WhPfqu+zbz4NNhd5KgE2AhAIaysmGqhoKL3U9Dog8TrnIg/uE LvoUHM/cOarBIkCk4owjutZX3j/4+p1mMG2DJ2T+FyoVMgXiJvvgzzLqgZd/Fuuk+rKm f6RQ== X-Gm-Message-State: AG10YOTdYTvD6r8YPGO3r2PDUJO57oNFswnW8K4vre0RwSkJ13x/6khx652BgbU6HUjImQ== X-Received: by 10.28.180.84 with SMTP id d81mr22050003wmf.42.1456270067210; Tue, 23 Feb 2016 15:27:47 -0800 (PST) Original-Received: from galloway.local (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 g1sm30541210wmc.0.2016.02.23.15.27.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 15:27:46 -0800 (PST) Content-Disposition: inline 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::231 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:200572 Archived-At: I was reading through Anders's wish-list for the NS port and noticed the bit about implementing the new OS X 'floating' scroll bars. As I'd been looking at scrollbars for a bug report anyway I figured I'd try to work out what would be required. 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. 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. -- Alan Third