All Projects → lukaskubanek → DetachablePopoverExample

lukaskubanek / DetachablePopoverExample

Licence: other
An example application showing the NSPopover's detaching API in macOS Yosemite

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to DetachablePopoverExample

Popover
Custom macOS Popover 💬
Stars: ✭ 71 (-24.47%)
Mutual labels:  nspopover

DetachablePopoverExample

This example application shows the new behavior of detaching popovers in OS X Yosemite. Its goal is to modernize the outdated sample application Popover developed by Apple. This is achieved by using the new API of NSPopover (NSAppearance & default detached windows), Swift and OS X Storyboards.

Detached Window Types

Default detached windows: When using the default behavior of NSPopover an implicit detached window is created. This has the same appearance as the popover and reuses the content view controller of the popover.

Custom detached windows: Additionally, a custom detached window can be provided to NSPopover. In this case the content of the popover represented by the view controller is not moved to the new window and the developer has the responsibility to adjust the content of the custom window. Moreover the content view controller of the popover can't be directly reused for this purpose. The only possibility is to create a new instance.

Demo

The following video shows the discussed functionality of the example application:

Video

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].