         NSCursor.pop()
     }
 
-    func getNamedCursor(name: String) -> NSCursor {
+    func getNamedCursor(name: NSString) -> NSCursor {
         switch (name) {
         case "default": return NSCursor.arrowCursor()
         case "context-menu": return NSCursor.contextualMenuCursor()

public protocol NativeExport: JSExport {
    func save()
    
    func pushCursor(name: String)
    func popCursor()

    func showConsole()

    }

    var trackingArea: NSTrackingArea?
    public func pushCursor(name: NSString) {
        getNamedCursor(name).push()
    }

