Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I make an "appearance file" for NSAppearance?
    primarykey
    data
    text
    <p>I was reading the Cocoa documentation and stumbled across some new features in the 10.9 API.</p> <p><a href="https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSAppearance_Class/Reference/Reference.html">From the docs</a> I gather that the <code>NSAppearance</code> class and a related protocol <code>NSAppearanceCustomization</code> Appear to be a means of customizing the appearance of <code>NSView</code> and its descendants.</p> <blockquote> <p>An NSAppearance object represents a file that specifies a standard or custom appearance that applies to a subset of UI elements in an app. An app can contain multiple appearance files and—because NSAppearance conforms to NSCoding—you can use Interface Builder to assign UI elements to an appearance.<br> Typically, you customize a window by <strong>using Xcode to create an appearance file that contains the views you want to customize and the custom art that should be applied to them</strong>. Xcode transforms the file’s art content into a runtime format that AppKit can draw when the specified views are displayed.</p> </blockquote> <p>Well that all sounds neat and promising, but nowhere in the documentation can I find what an appearance file is or how to make one. Google searches are coming up empty other than for the thin documentation I have already read.</p> <p>I do see that UIKit has a similar sounding <code>UIAppearance</code> class, but from what I can tell this is not a straight port of the UIKit class.</p> <p><em><strong>Does anybody know how to make one of these magic "appearance files" and what exactly we can do with them?</em></strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload