2.1
版本发布时间: 2016-04-25 21:30:46
kasper/phoenix最新发布版本:4.0.1(2024-06-11 06:00:35)
This release includes some exiting new features: including support for Spaces, creating timers to achieve delays or timed events and support for running Phoenix completely in the background! We also added some nice additions to the API, made various other improvements and fixed a few annoying bugs. Thanks for using Phoenix and do not hesitate to provide feedback!
New
- Phoenix now supports Spaces! These features are only supported on El Capitan (10.11) and upwards. A new global
Space
-object has been created to control spaces, see the API (#60). - Preferences can now be set programmatically through the API (#67).
- Phoenix can be run completely in the background, this also removes the status bar menu, see the
daemon
-preference in the API (#68). - You can now create timers to achieve delays and timed events. A new
TimerHandler
-object has been created to control timers, see its API. See the functionsPhoenix.after(double interval, Function callback)
andPhoenix.every(double interval, Function callback)
in the API to create timers (#77).
Changes
- Upgrade Sparkle to 1.14.0. This also fixes the HTTP MITM-vulnerability discovered in Sparkle — though Phoenix was never vulnerable since we use HTTPS to secure updates.
Improvements
- Adjust latency of context reloads on configuration file changes to limit race conditions (#83).
- Objects that implement
Iterable
can be traversed. Namely,Screen
andSpace
. - All handlers now receive their handlers as the last argument for the callback function.
- Improvements to memory management and other small improvements.
Bug Fixes
- Improve error handling in preprocessing (#65).
- Fix an issue that prevented an exception raised in a handler callback to be caught and reported (#70).
- Fix an issue that prevented setting the frame for a window correctly while moving it to a smaller screen (#84).
API
Events
- New: Event
spaceDidChange
is triggered when the active space has changed.
Phoenix
- New: Function
after(double interval, Function callback)
creates a timer that fires the callback once after the given interval (in seconds) and returns the handler, you must keep a reference to the handler in order for your callback to get called, the callback function receives its handler as the only argument. - New: Function
every(double interval, Function callback)
creates a timer that fires the callback repeatedly until stopped using the given interval (in seconds) and returns the handler, you must keep a reference to the handler in order for your callback to get called, the callback function receives its handler as the only argument. - New: Function
set(Map<String, AnyObject> preferences)
sets the preferences from the given key–value map, any previously set preferences with the same key will be overridden. - Change: The callback for function
bind(String key, Array<String> modifiers, Function callback)
now receives its handler as the only argument, previously the callback received no arguments. - Change: The callback for function
on(String event, Function callback)
now receives its handler as the last argument.
Screen
- New: Function
identifier()
returns the UUID for the screen (#79). - New: Function
spaces()
returns all spaces for the screen (OS X 10.11+, returns an empty list otherwise).
Window
- New: Function
isFullScreen()
returnstrue
if the window is a full screen window (#60, #80). - New: Function
spaces()
returns the spaces where the window is currently present (OS X 10.11+, returns an empty list otherwise). - New: Function
setFullScreen(boolean value)
sets whether the window is full screen (#60, #80).
SHA-256: 77dfc73e900678f3c22c17c689c334a7147c0c0ab1d3073e7a98ad2ae98e74ed phoenix-2.1.tar.gz
1、 phoenix-2.1.tar.gz 2.11MB