Answer the question
In order to leave comments, you need to log in
What is the best way to design a generic clipboard?
There are mac, pc, iphone, you need to create a universal clipboard between them.
Those. inserted text from pc/mac'a/iphone, posted it to the cloud, took it from other devices
In this regard, there are several questions about the correct implementation of this case.
Let's say there is a form with textview on a poppy, there is a callback to change the text
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(ViewController.buffDidChange(_:)), name: "NSTextDidChangeNotification", object: nil)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question