Latest 0.1.0
Homepage https://github.com/MatthewMerritt/MMTodo
License MIT
Platforms ios 11.0, osx 10.13
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

MMTodo is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MMTodo'

Usage iOS

  1. In ViewController File, include MMTodo

    import MMTodo
  2. In ViewController Class, add these

// Get an instance of the MMTodoModel
public var todoModel = MMTodoModel.shared


3. In ViewController.ViewDidLoad function, initialize MMTodo
```swift
// Setup the ping and MySQL Information
todoModel.settings.pingHost = "ping Host"
todoModel.settings.mySqlHost = "MySQL Host"
todoModel.settings.mySqlUsername = "MySQL Username"
todoModel.settings.mySqlPassword = "MySQL Password"
todoModel.settings.project = "Project"

// Start the listener for MySQL connection changes
self.todoModel.listen()
  1. Add Storyboard-iOS.storyboard to Target -> MMTodo -> Build Phases -> Copy Bundle Resources

  2. Now MMTodo will be available when you shake your device.

Usage macOS

  1. In ViewController File, include MMTodo

    import MMTodo
  2. In ViewController Class, add these

    // Get an Instance of the MMTodoModel, MMTodoMenu and MMTodoWindowController
    let todoModel = MMTodoModel.shared
    var todoMenu: MMTodoMenu!
    var todoWindowController: MMTodoWindowController?
  3. In ViewController.ViewDidLoad function, initialize MMTodo
    
    // Create Menu and place it on the Help Menu
    todoMenu = MMTodoMenu(from: self, wth: #selector(self.todoMenuAction(_:)))

// Setup the ping and MySQL Information
todoModel.settings.pingHost = "ping Host"
todoModel.settings.mySqlHost = "MySQL Host"
todoModel.settings.mySqlUsername = "MySQL Username"
todoModel.settings.mySqlPassword = "MySQL Password"
todoModel.settings.project = "Project"

// Start the listener for MySQL connection changes
self.todoModel.listen()


4. Add the menu functions to your ViewController Class
```swift
// Menu Actions
@objc func todoMenuAction(_ sender: NSMenuItem) {
    if todoWindowController == nil {
        todoMenu.todoMenuItem.state = .on
        todoWindowController = MMTodoWindowController()
        todoWindowController?.showWindow(sender)
    } else {
        todoMenu.todoMenuItem.state = .off
        todoWindowController?.close()
        todoWindowController = nil
    }
}
  1. Add MMTodoWindowController.xib, Bar.png and Save.pdf to Target -> MMTodo -> Build Phases -> Copy Bundle Resources

  2. Now MMTodo will be available by Command-Shift-T or in your Help Menu.

Requirements

  • Xcode 9
  • Swift 4.0+

Dependencies

  • MMTodo uses MySqlSwiftNative for MySQL connectivity.

    Currently MMTodo is using a manual install since there isn’t a working Swift 4 Branch.

Todo

  • Add Todo Title edit in macOS

Author

MatthewMerritt

License

MMTodo is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MMTodo",
    "version": "0.1.0",
    "summary": "MMTodo is a crossplatform Todo Manger.",
    "description": "MMTodo is a cross platform Todo Manager. It supports both iOS and macOS and saves to anMySQL Database ( the user will need to have access to their own ). MMTodo with the rightsnwill create the DB as needed.",
    "homepage": "https://github.com/MatthewMerritt/MMTodo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "MatthewMerritt": "[email protected]"
    },
    "source": {
        "git": "https://github.com/MatthewMerritt/MMTodo.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "11.0",
        "osx": "10.13"
    },
    "source_files": [
        "MMTodo/Classes/Common/**/*",
        "MMTodo/Classes/MySQLDriver/**/*"
    ],
    "ios": {
        "source_files": "MMTodo/Classes/MMTodo iOS/**/*",
        "resource_bundles": {
            "MMTodo": [
                "MMTodo/Assets/MMTodo iOS/**/*"
            ]
        },
        "resources": "MMTodo/Assets/MMTodo iOS/Storyboard-iOS.storyboard"
    },
    "osx": {
        "source_files": "MMTodo/Classes/MMTodo macOS/**/*",
        "resource_bundles": {
            "MMTodo": [
                "MMTodo/Assets/MMTodo macOS/**/*"
            ]
        },
        "resources": [
            "MMTodo/Assets/MMTodo macOS/MMTodoWindowController.xib",
            "MMTodo/Assets/MMTodo macOS/Bar.png",
            "MMTodo/Assets/MMTodo macOS/Save.pdf"
        ]
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This