Is it possible in Cocoa to move a window by dragging an object which is inside that window? For example: I have a webview inside a window, big as the window, so setMovableByWindowBackground will obviously not work. Is there a way to click and drag the web view and move the whole window?
Can I move window using an object inside that window?
1.8k Views Asked by Donovan At
1
There are 1 best solutions below
Related Questions in COCOA
- In what context can we use an unqualified #selector() expression in Swift?
- How can I trigger macOS system gamepad API based on a value received from iOS app through core bluetooth
- Using sort descriptors in Outline View
- NSTableView to NSOutlineView Drag & Drop not accepting drop
- How to remove horizontal line in bottom of section NSTableView?
- CGSRegionRef: How is an arbitrary region represented as union of rects?
- Listen for Touch Events on MacOS (Trackpad)
- Window "yanks" when moving
- Writing NSFilePromiseProviders to pasteboard blocks app on quit
- Basic ImGui program doesn't render, leaks memory and crashes
- NSTokenField suggestion using context menu in swift
- How to link multiple text views to a single text storage in TextKit 2
- I would like to know why I’m not getting IBOutlets connected in an App’s window
- How to make a custom event loop in Cocoa?
- Why is restoreWindow(withIdentifier:state:) called after applicationDidFinishLaunching(_:)?
Related Questions in WINDOW
- Pycharm doesn't show "executable_path" and I got this error and no idea what to do
- Join statement with nested select
- Are there any tools or NuGet packages available for C# (Windows Forms) that assist in visualizing Dijkstra's algorithm?
- paho mqtt java cannot reconnect after a long time machine sleep
- An issue where memory peaks abnormally and then normalizes again
- Writing large buffer data to a file using Windows API
- Pyspark Cummularive Sum Window Date and Sequence Number
- Get value from new popup window by clicking on an element using Jquery
- How will create the updater & repair window's in NSIS using NULL SCRIPT
- window.localStorage function not working on API Routing NextJS
- Is there any way to make tkinter window dismiss Win + D command?
- How to get JSON data from an external window in javaScript(different domains)
- Overriding the default export button click event in crystal report viewer Print UI fdialog
- Is there a way using JavaScript to open a new window in another monitor?
- Unable docker desktop with Window 10 Pro
Related Questions in MOVABLE
- Upgrading MovbableType to 4.32 creates a javascript error with custom fields and kills FCKeditor
- wxWidgets - Creating a borderless frame movable
- mxHierarchicalLayout ignores isVertexMovable
- removable(draggable) and replaceable DIV
- Make a borderless form movable?
- Can I move window using an object inside that window?
- Qt 4.7.4 - Make transparent pixels clickable (expand hitbox) in QGraphicsItem pixmap
- How to access the position offsets of movable QGraphicsItems?
- Using positive lookbehind in Movable Type templates causes error due to < in pattern string
- How to create a movable panel in wx python
- how to make multiple movable elements
- Movable Type: Change URL using regex replace
- why dblclick does not work in my Vue js app
- Moving a control by dragging it with the mouse in C#
- Dynamicly Add Image Onto Moveable Canvas
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Sure, you've just got to track the mouse movements using
mouseDragged. Something similar to this should work:Which I got from here: http://www.cocoadev.com/index.pl?SetMovableByWindowBackground