Creates an appearance object from the named appearance file located in the specified bundle.
SDK
- macOS 10.9+
Framework
- App
Kit
Declaration
- (instancetype)initWithAppearanceNamed:(NSAppearance Name)name bundle:(NSBundle *)bundle;
Parameters
name
The name of the appearance file to retrieve. Do not include any path information in the name.
bundle
The bundle in which to search for the named appearance file. Specify
nil
to search for the appearance file in the main bundle.
Return Value
An initialized appearance object, or nil
if an error occurs.