Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 779 Bytes
// RBLClipView.h
// Rebel
// Created by Justin Spahr-Summers on 2012-09-14.
// Copyright (c) 2012 GitHub. All rights reserved.
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
// A faster NSClipView based on CAScrollLayer.
// This view should be set as the scroll view's contentView as soon as possible
// after the scroll view is initialized. For some reason, scroll bars will
// disappear on 10.7 (but not 10.8) unless hasHorizontalScroller and
// hasVerticalScroller are set _after_ the contentView.
@interface RBLClipView : NSClipView
// The backing layer for this view.
@property (atomic, strong) CAScrollLayer *layer;
// Whether the content in this view is opaque.
// Defaults to NO.
@property (atomic, getter = isOpaque) BOOL opaque;