Category:Identity theft
Category:Internet privacy
Category:Computer security software"use strict";
var _Object$getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of")["default"];
exports["default"] = (_Object$getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of"))["default"];
var _Object$setPrototypeOf = require("babel-runtime/core-js/object/set-prototype-of")["default"];
exports["default"] = _Object$setPrototypeOf["default"];
exports.__esModule = true;Q:
Copy data to the active window using com.apple.taskloop.async.plist
I am having problems with the taskman interface. I want to access the data from the keyboard (i.e. a URL), which is currently stored in a NSString in an NSMutableDictionary and being used by one of my classes.
I thought that I could copy the data into the active window, so that I can make the change in my class. The URL I have to copy is stored in a plist file.
Currently I have this working:
- (void)copy:(id)sender
{
// get our active thread
NSThread* activeThread = [NSThread currentThread];
// we need to clear the output of the active thread
[activeThread setThreadName:@"cleared"];
// we will call the method "Copy" for it
NSArray* copyArray = [[[NSWorkspace sharedWorkspace] openURLs] copy];
// set the threads name
[activeThread setThreadName:@"Copied"];
// get the active window
NSApplication* app = [NSApplication sharedApplication];
// set the active window as the main window, so that we can access the window
[[app window] makeKeyAndOrderFront:self];
// set the flag for the end of the copy task
[[self window] setDocumentEdited:YES]; ac619d1d87
Related links:
留言