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
- How do I customize NSOutlineView to have border color?
- How to generate request format for WCF web service method for Mac and iPhone
- How to Handle Command Line Prompt from a Cocoa App
- Change views inside NSSplitViewController
- CMYK NSImage get pixel data
- Reactive Cocoa Conditional Split ?
- Set background color of NSImageView with proportionally sized image
- Use NSWindow or NSViewController?
- Imports and includes in header files - when is it okay?
- How to prevent the app from automatically open a window when launched?
- Swift NSViewController responds to mouseDown event, but not keyDown event
- "stringByAddingPercentEncodingWithAllowedCharacters" replaces more characters than it should
- cocoa - what happen when close a window (by pressing the red X button)?
- Does it necessary to go back to main thread to update UI?
- WebView not responding to Keyboard input
Related Questions in WINDOW
- Dismissing the dialog by outside touch event is not working
- Java FrameDemo Error: Could not find or load main class
- C# - Allow only specific windows on top of application?
- javascript click button after be shure that page has completely loaded
- Making a Simple RPG- Creating a new JFrame
- How to give a child window bounds to not go outside the MainWindow in WPF
- How do I scale the graphics of a game?
- WPF maximize main window with center for application
- Creating a folder and registry editing script as an executable
- creating a pop-up(or is it a pop-over?) window for a webpage
- Wicket Modal Window, any way to close it if i click outside of the modal window?
- How to detect when a specific window is closed in java
- how to fit content in browse height
- how do you make a protected window in applescript?
- Window is closing immediately after I run program in PyQt 4 (anaconda) [PyCharm 4.5]
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