OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
WKWebView(DragDrop) Category Reference

Instance Methods

(NSDragOperation) - draggingEntered2: [implementation]
(NSDragOperation) - draggingUpdated2: [implementation]
(BOOL) - prepareForDragOperation2: [implementation]
(BOOL) - performDragOperation2: [implementation]

Class Methods

(void) + load [implementation]

Detailed Description

Method Documentation

◆ draggingEntered2:

- (NSDragOperation) draggingEntered2: (id<NSDraggingInfo>) sender
implementation
152 :(id<NSDraggingInfo>)sender
153{
154 return NSDragOperationCopy;
155}

◆ draggingUpdated2:

- (NSDragOperation) draggingUpdated2: (id<NSDraggingInfo>) sender
implementation
157 :(id<NSDraggingInfo>)sender
158{
159 return NSDragOperationCopy;
160}

◆ load

+ (void) load
implementation
134{
135 Method draggingEntered = class_getInstanceMethod([WKWebView class], @selector(draggingEntered:));
136 Method draggingEntered2 = class_getInstanceMethod([WKWebView class], @selector(draggingEntered2:));
137 method_exchangeImplementations(draggingEntered, draggingEntered2);
138
139 Method draggingUpdated = class_getInstanceMethod([WKWebView class], @selector(draggingUpdated:));
140 Method draggingUpdated2 = class_getInstanceMethod([WKWebView class], @selector(draggingUpdated2:));
141 method_exchangeImplementations(draggingUpdated, draggingUpdated2);
142
143 Method prepareForDragOperation = class_getInstanceMethod([WKWebView class], @selector(prepareForDragOperation:));
144 Method prepareForDragOperation2 = class_getInstanceMethod([WKWebView class], @selector(prepareForDragOperation2:));
145 method_exchangeImplementations(prepareForDragOperation, prepareForDragOperation2);
146
147 Method performDragOperation = class_getInstanceMethod([WKWebView class], @selector(performDragOperation:));
148 Method performDragOperation2 = class_getInstanceMethod([WKWebView class], @selector(performDragOperation2:));
149 method_exchangeImplementations(performDragOperation, performDragOperation2);
150}
Method
Definition SeamContour.hpp:35

References load.

Referenced by load.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ performDragOperation2:

- (BOOL) performDragOperation2: (id<NSDraggingInfo>) info
implementation
167 :(id<NSDraggingInfo>)info
168{
169 NSURL* url = [NSURL URLFromPasteboard:[info draggingPasteboard]];
170 if (!url) {
171 return FALSE;
172 }
173 NSString * path = [url path];
174 url = [NSURL fileURLWithPath: path];
175 [self loadFileURL:url allowingReadAccessToURL:url];
176 return TRUE;
177}

◆ prepareForDragOperation2:

- (BOOL) prepareForDragOperation2: (id<NSDraggingInfo>) info
implementation
162 :(id<NSDraggingInfo>)info
163{
164 return TRUE;
165}

The documentation for this category was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/MacDarkMode.mm