Additional macOS Sierra Frameworks Changes
Let us know how you feel about this
last updated: 2016-09
This article covers additional, minor changes or enhancements to existing frameworks for macOS Sierra.
In addition to the major changes to macOS Sierra, Apple has made modifications and improvements to several existing frameworks in macOS including the following:
- Accelerate Framework Enhancements
- Appkit Framework Enhancements
- AVFoundation Framework Enhancements
- Core Data Framework Enhancements
- Core Image Framework Enhancements
- Foundation Framework Enhancements
- GameKit Framework Enhancements
- GamePlayKit Framework Enhancements
- Metal Framework Enhancements
- Model I/O Framework Enhancements
- Photos Framework Enhancements
- Security Framework Enhancements
- SpriteKit Framework Enhancements
- New Frameworks
Accelerate Framework Enhancements
The following enhancement have been made to the Accelerate Framework for macOS Sierra:
- Added Quadrature (integral calculus).
- Added Basic functions for constructing neural networks.
- Added Geometric predicate functions to test for things like the intersection of two geometric objects.
Appkit Framework Enhancements
The following enhancement have been made to the AppKit Framework for macOS Sierra:
- Several enhancements to
- Collapsible Sections - Allows the user to collapse a Collection View section into a single horizontal row.
- Floating Headers - Headers and Footers can now be floated (in a flow layout) using the same API as UICollectionView in iOS.
- Scrollable Background Views - A collection Views background can now be set to scroll along with the content.
- The deferred view layout pass has been optimized and extended.
- The drag-and-drop API now includes the new
NSFilePromiseReceiverclasses to support drag flocking.
- Several convenience constructors have been added to existing controls:
NSButtonincludes new constructors for creating push buttons, checkboxes and radio buttons.
NSTextFieldincludes new constructors for creating wrapping and non-wrapping labels, attributed labels and editable text fields.
NSSegmentedControlincludes new constructors for creating segmented controls from a group of labels or images.
NSSliderincludes new constructors for creating horizontal linear sliders.
NSImageViewincludes new constructors for creating non-editable image views from a given
- The new
NSGridViewhas been added to auto layout a collection of sub views into a grid with variable sized rows and columns that can be dynamically hidden or shown.
AVFoundation Framework Enhancements
The following enhancement have been made to the AVFoundation Framework for macOS Sierra:
- In macOS, the app no longer has to implement different AVPlayerItem behaviors based on content type. Simply set the
Rateproperty and AVFoundation will determine when enough content is available for playback without stalling.
- The new
AVPlayerLooperclass makes it easier to loop a given piece of media during playback.
AVAssetDownloadURLSessionclass allows for the downloading and later playback of FairPlay encrypted HLS streams.
Core Data Framework Enhancements
The following enhancement have been made to the Core Data Framework for macOS Sierra:
- Root NSManagedObjectContext objects supports concurrent faulting and fetching without serialization.
- The NSPersistentStoreCoordinator class maintains a pool of SQLite data stores.
- The NSManagedObjectContext objects with SQLite data stores in the WAL Journal Mode support the new query generation feature where Managed Object Contexts (MOC) can be pinned to specific database versions for future fetching and faulting transactions.
- Using the high-level
NSPersistenceContainerto reference the
NSPersistentStoreCoordinator, NSManagedObjectModel and other Core Data configuration resources.
- Several new convenience methods have been added to
NSManagedObjectmaking it easier to perform fetches and create subclasses.
For more information, please see Apple's Core Data Framework Reference.
Core Image Framework Enhancements
The following enhancement have been made to the Core Image Framework for macOS Sierra:
ImageWithExtentmethod of the CIFilter class can be used to insert custom processing into the filter operation. Core Image will invoke the given callback between filters when processing an image for output or display.
- The app can now process images in a color space outside of the Core Image context's working color space by converting in and out of the color space before and after processing.
- The Core Image kernel can now request a specific pixel output format.
- The following new image filters have been added:
Foundation Framework Enhancements
The following enhancement have been made to the Foundation Framework for macOS Sierra:
- Use the NSDimentions API for representing, converting and displaying many of the most common physical units such as mass, length, speed, duration and temperature.
- Use the NSISO8601DateFormatter class for parsing and generating ISO 8601 formatted dates.
- Use the new NSDateInterval class to make date and time interval calculations such as durations, for comparing intervals and testing for interval intersections.
- Use the NSPersonNameComponentsFormatter class to parse the elements of a person's name from a string.
- Use the new NSURLSessionTaskMetrics class to obtain metrics for a URL networking session.
For more information, please see Apple's Foundation Release Notes for OS X v10.12 and iOS 10.
GameKit Framework Enhancements
The following enhancement have been made to the GameKit Framework for macOS Sierra:
- The Game Center App has been deprecated and removed from macOS. If the app uses GameKit, it must present its own interface to display GameKit features such as leaderboards, etc.
- A new iCloud-only account type has been implemented by the GKCloudPlayer class.
- The new GKGameSession class provides a generalized solution for managing persistent data storage on Game Center.
GKGameSessionmaintains a list of players and the app is responsible form implementing how and when participant date is stored, retrieved or exchanged between players. In many instances Game Sessions can replace existing turn-based matches, real-time matches or persistent game save methods.
GamePlayKit Framework Enhancements
The following enhancement have been made to the GamePlayKit Framework for macOS Sierra:
- Procedural noise generation has been added and can be used to enhance the realism in natural-looking textures, add realism to camera movements and help generate rich game worlds.
- Use Spatial Partitioning to partition the game world data for efficient searching.
- A new Monte Carlo strategist (GKMonteCarloStrategist) has been added for exhaustive possible move computation.
- A new Decision Tree API has been added (GKDecisionTree and GKDecisionNode) to enhance the game-building AI.
- 3D support has been added to existing agent and path-finding behaviors using the new GKAgent3D and GKGraphNode3D classes.
- Use the new GKMeshGraph class to provide high-performance, natural-looking paths.
- The new GKScene and GKSKNodeComponent classes make combining GameplayKit and SpriteKit easier than ever.
Metal Framework Enhancements
The following enhancement have been made to the Metal Framework for macOS Sierra:
- 3D apps and games can now use Tessellation to efficiently render complex scenes and geometry via the GPU.
- Use Function Specialization to create a highly-optimized collection of material and light combination functions for a scene.
- Provide fine-grained control of resource allocation to optimize performance of Metal based apps using Resource Heaps and Memoryless Render Targets.
To learn more, please see Apple's Metal Programming Guide.
Model I/O Framework Enhancements
The following enhancement have been made to the Model I/O Framework for macOS Sierra:
- The USD file format is now supported.
- Use the new
MDLMaterialPropertyGraphclass to easily support runtime changes to models.
- Signed Distance Field support has been added to the MDLVoxelArray class.
- Use the new
MDLLightProbeIrradianceDataSourceclass to assist in Light Probe placement.
Photos Framework Enhancements
The following enhancement have been made to the Photos Framework for macOS Sierra:
- Live Photo editing is now available for apps that support the Photos framework and to photo editing extensions (for use inside of the Photos and Camera apps).
- Use the new PHLivePhotoEditingContext class to apply edits to both the video and still content of Live Photos.
- Use the CIImageProcessorInput and CIImageProcessorOutput classes to take advantage of the new Core Image processor feature to perform edits.
- To support Live Photos, the PHLivePhoto and PHLivePhotoView classes have been ported from iOS to macOS.
SceneKit Framework Enhancements
The following enhancement have been made to the SceneKit Framework for macOS Sierra:
- Now includes a new Physically Based Rendering (PBR) system for more realistic results with simpler asset authoring.
- Use the new SCNLightingModelPhysicallyBased shading model to product a wide range of realistic shading effects while requiring only three fundamental properties (
- Since PBR shading works best with environment-based lighting, use the
LightingEnvironmentproperty to assign image-based lighting to tan entire scene.
- Use the
IESProfileURLproperty to import real-world light fixtures that define lighting base on real-world values such as intensity (in lumens) and color temperature (in degrees Kelvin).
- The SCNCamera class can provide greater realism by using HDR features and effects. Use adaptive exposure to create automatic effects or use vignetting, color fringing and color grading to add filmatic effects to the game.
- Both PBR and HDR camera features provide better results than traditional rendering techniques and, as a result, SceneKit now performs all color calculations in a linear color space (using P3 color gamut on wide-color device displays).
- SceneKit now color matches all colors by reading the color profile information.
- SceneKit interprets color component values in a linear RGB color space for all shader types.
- Since SceneKit reads and adjust for color profile information in texture images, use Asset Catalogs for all images to ensure this information is provided.
- Both linear color space rendering and wide-color can be disabled by specifying the
SCNDisableWideGamutkeys in the app's
- Build arbitrary polygon primates (either loaded from files or generated programmatically) to specify geometry with the new SCNGeometryPrimitiveTypePolygon class.
Security Framework Enhancements
The following enhancement have been made to the Security Framework for macOS Sierra:
SecKeyinterface has been modernized and unified across all platforms (iOS, tvOS, watchOS and macOS).
SpriteKit Framework Enhancements
The following enhancement have been made to the SpriteKit Framework for macOS Sierra:
- Tilemaps now support square, hexagonal and isometric tile shapes for 2D, 2.5D and side-scrolling games using the
- Use the new
SKWarpGeometryclass to stretch or distort SKSpriteNode or SKEffectNode rendering. The new SKAction class can be used to animate transitions between warp effects.
- Custom shaders can provide attributes (
SKAttribute) that can be configured separately by each node that uses the shader by supplying an Attribute Value (
- The SKView class provides several new methods to give fine-grained control over when and how a scene is rendered.
The following frameworks have been added to macOS Sierra:
- Intents Framework - This framework allow the app to examine interactions (such as location or user actions), and take action based on that information.
- SafariServices Framework - This framework allow the app to develop app extensions for Safari (such as content blockers) for both macOS and iOS.