Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>EDIT: Guilherme's response is more accurate, although there is still no public way of altering appearances like you can in iOS.</p> <p>NSAppearance isn't much like UIAppearance (from what I can tell), it only relates to having controls under normal or light colored appearances. An example of this would be when you draw into a popover (light) vs a window toolbar perhaps (normal), NSAppearance allows you to identify which environment you're drawing into. To be honest I haven't used it yet, but the most information I've found was in the WWDC 2013 video on What's new in Cocoa and the <a href="https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKit/#//apple_ref/doc/uid/TP30000741-CH2-SW44" rel="nofollow">10.9 release notes</a></p> <p>From my understanding, it allows you to specify what the control looks like on a particular background. If a control you use is to be reused on a different background, you could check the current appearance and draw your control accordingly using <code>[NSAppearance currentAppearance]</code></p> <p>Another important part is that there is a new protocol your views or windows can adopt called the <a href="https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSAppearanceCustomization_Protocol/Reference/Reference.html" rel="nofollow">NSAppearanceCustomization protocol</a> which allows you to specify that view's appearance. Not exactly sure how this works but it's there. Some Cocoa control also have these implemented which are discussed in the <a href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AppleHIGuidelines/Controls/Controls.html#//apple_ref/doc/uid/TP30000359-SW114" rel="nofollow">HIG for Controls</a>.</p> <p>There are 2 appearances that Apple defines but you might be able to define your own using your own strings (again, not sure). At the bottom of the docs you linked to you'll find these 2 constants:</p> <pre><code>APPKIT_EXTERN NSString *const NSAppearanceNameAqua; APPKIT_EXTERN NSString *const NSAppearanceNameLightContent; </code></pre> <p>So it's no UIAppearance, it's just a way of knowing what type of background you're drawing onto.</p>
    singulars
    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.
    1. VO
      singulars
      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