nspasteboard Questions
2
Solved
iOS and macOS have a built in feature called Universal Clipboard that syncs the clipboard's content across devices using iCloud.
NSPasteboard.general.clearContents()
NSPasteboard.general.writeObje...
Salzburg asked 5/7, 2019 at 13:51
2
Previously, I was using the following to discover e-mail meta-data from a drag & dropped e-mail(/-thread) from Mail.app.
if let filenames = draggingInfo.namesOfPromisedFilesDropped(atDestinat...
Czarism asked 27/12, 2017 at 11:46
2
I have a one-section collection view and would like to implement Drag and Drop to allow reordering of the items. The CollectionViewItem has several textviews showing properties form my Parameter ob...
Thanatopsis asked 18/2, 2017 at 12:44
2
Solved
How do you Copy a string to Clipboard in macOS 10.12 with Xcode 8 and Swift 3?
I am not able to find any reference.
Edan asked 8/12, 2016 at 12:12
6
Solved
I've read Apple's Pasteboard Programming Guide, but it doesn't answer a particular question I have.
I'm trying to write a Cocoa application (for OS X, not iOS) that will keep track of everything t...
Schoolbag asked 17/2, 2011 at 18:55
5
Solved
I need to get the URLs of all files dragged/dropped into my application from Finder.
I have a Cocoa app running on 10.6 which does this by using the new 10.6 NSPasteboard APIs which handle multipl...
Arnitaarno asked 4/1, 2010 at 8:14
2
Solved
NSFilenamesPboardType got deprecated on 10.14 and the suggestion is to use NSPasteboardTypeFileURL. This gives me filename as
file:///.file/id=6571367.12885025918
and NSWorkspace is unable to...
Canebrake asked 18/5, 2019 at 12:44
2
Solved
I'm having a really difficult time trying to get NSPasteboard to work, so forgive me for my lack of understanding.
All I want is a simple way to write and retrieve from the pasteboard a NSUInteger...
Denaedenarius asked 30/8, 2011 at 13:11
5
Solved
I'm a beginner with Swift, and I'm trying to figure out how can I read what has been copied to the clipboard On macOS (Swift 3)? I've searched a lot but can't seem to find anything that works.
A f...
Capone asked 3/1, 2017 at 21:43
2
Solved
maybe it's been a long night but I am not able to understand how to check the clipboard for strings
I have been reading the NSPasteboard documentation..
could some one help me out?
Danonorwegian asked 29/5, 2011 at 11:41
1
I am working on a macOS application that involves creating a folder in a temporary directory.
How can I allow users to drag a folder icon off of the Cocoa app and onto their desktop (or into Finde...
Neale asked 19/1, 2018 at 2:1
2
Solved
Ok, Here's the code I'm using :
if let image = NSImage(pasteboard: pasteboard){
//..
}
And I have 3 ways where images come into the app:
If the image is dragged to the window, and using the ...
Trumpery asked 19/2, 2017 at 0:10
2
Solved
Several OSX clipboard managers from AppStore show the ability to determine the source-application of content that was copied to the clipboard.
I am writing some simple clipboard observer and would...
Conductive asked 1/5, 2013 at 19:35
1
In a Mac OS X app (Cocoa), I'm copying some images from my app to others using a NSDraggingSession. The NSDraggingItem makes use of an object that implements the protocol NSPasteboardItemDataProvid...
Crowbar asked 5/9, 2015 at 18:26
2
Solved
I'm automating a copy command to place some text on the pasteboard every second or so - unfortunately this is my only way of accessing the text, which is in another application. After copying, I ac...
Sanctimonious asked 21/5, 2010 at 14:10
4
I processed drag operation from browser view to custom view.It work well in snow lepoard,but not in Mountain Lion with sandbox.
in browser view:
NSMutableArray* urls = [[[NSMutableArray alloc] i...
Downs asked 9/8, 2012 at 10:54
3
I have a faceless Mac OS X app which needs to copy selection from other apps. I achieve this by simulating CMD+C keystrokes. It works perfectly.
But there is a, I think it's critical, side effect. ...
Hauteur asked 25/5, 2011 at 0:50
3
Solved
I have read about NSPasteBoard in the Apple documentation, and how it allows for applications to write into the PasteBoard and allow other applications to read that text and use it.
Could someone ...
Creel asked 21/4, 2010 at 6:25
1
© 2022 - 2024 — McMap. All rights reserved.