Skip to content

Simply plugin loader for iOS system menu.

License

Notifications You must be signed in to change notification settings

r-plus/MenuSupport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MenuSupport

Simply plugin loader for iOS system menu. APIs designed easy to migration from Action Menu.

What's the difference with Action Menu

Protocol

Named as MSMenuItem. It have almost same property.

MenuSupport Action Menu
SEL action SEL action
SEL canPerform SEL canPerform
NSString *title NSString *title
UIImage *image UIImage *image
N/A AMMenuItemStyle style
N/A NSInteger priority

Plugin registration API.

Registration API has ms_ prefix.

MenuSupport Action Menu
ms_registerAction:title:canPerform: registerAction:title:canPerform:
N/A registerAction:title:canPerform:forPlugin:

Textual API for UIResponder

Textual API has ms_ prefix without cached APIs.

MenuSupport Action Menu
ms_textualRepresentation textualRepresentation
ms_selectedTextualRepresentation selectedTextualRepresentation
N/A cachedTextualRepresentation
N/A cachedSelectedTextualRepresentation
N/A actionMenuBehaviors
N/A always

UIAlertView API

UIAlertView is deprecated from iOS 8, not provide API for it.

Frontmost window API

This is useful new API for plugin that show custom view to frontmost screen.

MenuSupport Action Menu
frontmostWindow N/A

Preference key

key MenuSupport Action Menu
defaults jp.r-plus.MenuSupport com.booleanmagic.ActionMenu
key MSPluginEnabled-<PluginName> AMPluginEnabled-<PluginName>
PostNotification jp.r-plus.MenuSupport.settingschange com.booleanmagic.ActionMenu.settingschange

Install path

MenuSupport Action Menu
/Library/MenuSupport/Plugins /Library/ActionMenu/Plugins

Depend bundleIdentifier

MenuSupport Action Menu
jp.r-plus.menusupport actionmenu

Sample plugin