NSWindow
subclass that simplifies Yosemite exclusive features:
- custom titlebar height
- custom traffic lights margings
- simplified NSAppearance switching
- and more
This NSWindow subclass provides an interface to enable OS X 10.10 Yosemite exclusive features conveniently.
Next to customizing the look of the WAYWindow
content view, you can also customize the title bar and standard window buttons ('traffic lights').
The public interface is generally similar to INAppStoreWindow
to facilitate the migration.
Whenever it makes sense, the properties of your WAYWindow
instance in Interface Builder are inspectable.
Tips:
- Check out the WWDC '14 session "Adopting Advanced Features of the New UI of OS X Yosemite", which provides more details on how to make use of the new Yosemite APIs.
- Also check out the new APIs in
NSScrollView
to make use of contentInsets, scrollInsets, and more.
Many thanks to @indragie for his INAppStoreWindow, which has been the inspiration for this class.
- Drag a new
NSWindow
instance to your XIB - Set the class of the instance to
WAYWindow
- Customize the properties via Interface Builder or programmatically
Note: You should probably consider using WAYAppStoreWindow instead of this class directly!
We are new, weAreYeah.com. Follow us on @weAreYeah for upcoming goodies.
Licensed under the BSD License http://www.opensource.org/licenses/bsd-license
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.