nspasteboard
Mac OSX / cocoa - getting location path string with raw data for a NSPasteBoard item
I have an app which allows me to drag items from my web browser to the app dock icon. When I drag an image from the web and get is raw data with [pBoardItem dataForType:NSPasteboardTypePNG];[详细]
2023-04-08 02:14 分类:问答NSPasteboard and simple custom data
I\'m having a really difficult time trying to get NSPasteboard to work, so forgive me for my lack of understanding.[详细]
2023-03-31 14:08 分类:问答how to copy all attributed content from NSTextView to NSPasteboard
I\'m trying to implement auto copy content from NSTextView to clipboard for pasting it in editor in the future. NSTextView has plain and attributed text and images.[详细]
2023-03-14 19:55 分类:问答Multiple types on pasteboard including files, rtfd, and custom type (Mac OS X 10.6)
The new pasteboard api in 10.6 seems to work well once you 开发者_Go百科get your head around UTIs, but I\'ve come across a situation that I can\'t crack: What if you\'re declaring multiple data types[详细]
2023-03-12 19:28 分类:问答get string from nspasteboard
maybe it\'s been a long night but I am not able to understand how to check the clipboard for strings[详细]
2023-03-08 21:20 分类:问答How to save off the pasteboard contents first and restore them afterward?
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.[详细]
2023-03-08 00:18 分类:问答Can I receive a callback whenever an NSPasteboard is written to?
I\'ve read Apple\'s Pasteboard Programming Guide, but it doesn\'t answer a particular question I have.[详细]
2023-02-11 07:19 分类:问答Get HTML of selected link in a Mac OS X Service
I\'m writing a Service that will be bundled with my application. The user should be able to right-click on a link in Safari (or another web browser) and call my Service and have it process the link (n[详细]
2023-02-08 06:06 分类:问答NSPasteboard type for NSManagedObject
I need to drag a reference to an NSManagedObject b开发者_开发知识库etween two table views of my application. What\'s the preferred NSPasteboard type to store a reference to an NSManagedObject?[详细]
2023-01-30 18:45 分类:问答NSStringPboardType gives xml plist not the string I want
I\'m trying to drag some text (a plain string) from an app. NSString *text = @\"My Text\"; NSLog(@\"%@\", text);[详细]
2023-01-24 18:42 分类:问答