Skip to content

Instantly share code, notes, and snippets.

View anystone's full-sized avatar

Anystone anystone

View GitHub Profile
@anystone
anystone / NSView+ASTEnhancements.h
Last active April 12, 2016 02:23
A common pattern for for single window oriented Mac apps is to create a set of container views in the main window. Then each of the container views can be filled with an NSViewController controlled view. In the strings and struts world, embedding a view was typically done by adding the subview and then matching the frame size of the embedded vie…
//
// NSView+ASTEnhancements.h
//
// Created by Sean Kormilo on 2012-12-27.
// http://www.anystonetech.com
// http://www.anytune.us
// Copyright (c) 2012 Anystone Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy