Is there a way to use layer backed NSView as the contentView of a NSDockTile? Tried all sorts of tricks, but all I get is transparent area. Also tried going different route and get an image out of the CALayer and use that for [NSApp setApplicationIconImage:], but no luck either - I think the issue here is creating image representation for offscreen image.
Using layer backed NSView as NSDockTile contentView
957 Views Asked by Tom At
1
There are 1 best solutions below
Related Questions in CALAYER
- App crashes of type EXC_BREAKPOINT (SIGTRAP) SIGNAL 5 Trace/BPT trap on iOS17
- Inserting subview into view where I've added subviews and sublayers
- Performance slowdown and inaccuracies in stroke rendering due to float-based distance calculation in drawing
- When using UIScrollView, how can I fade the left and right edges if content is outside the visible bounds?
- How to render content of CALayer and sync with it in real-time
- Issue with Sequential Touch Points in Using CALayer for Drawing in Swift
- layerClass breaks auto layout
- why does write addSublayer twice to block screenshot in swift?
- CALayer in SwiftUI: add CALayer circleLayer to view Camera layer but not show it on the screen
- How to make CALayer adapt to the application appearance using drawlayer:inContext:?
- Synchronize CARenderer with .private MTLTextuer
- Synchronize UIView CALayer draw with UIScrollView
- Flickering while rendering a CALayer -> MTLTexture, via CARenderer on background thread
- CALayer disappears when storing in a property
- Overlapping multiple CAShapelayers of the same size
Related Questions in NSVIEW
- How to create a table cell view like this similar to native not app notification view
- NSView as child of NSWindow.contentView lose interaction
- NSView display causes immediate drawRect call, but subviews changes not shown untill the next NSApp loop step
- How to make CALayer adapt to the application appearance using drawlayer:inContext:?
- MacOS/Appkit: unable to see drag animations for an NSTextView
- NSView stopped clipping to bounds on macOS 14
- Disable NSViewRepresentable redrawing animations
- Why this window does not show up at all?
- How to update an NSWindow's content while it is toggling fullscreen?
- Stackview can't be resized follow the size of NSView
- Returning another NSView subclass in 'initWithCoder' results in error "This coder requires that replaced objects be returned from initWithCoder""
- Rendering OpenGL within an NSView subclass does not render
- Issue with NSTextView and NSView key events
- CASpringAnimation start from 0.0 anchorpoint of NSView
- How to add a glowing effect with shadow to a gradient border in a Swift app?
Related Questions in NSIMAGE
- Detect and remove excess solid color padding around and NSImage
- NSImage resizing 10bit image using CGContext
- Transform two NSImages on top of each other into a single NSImage without using `lockFocus`
- Is there a way to get the data from an Applescript image (AXImage), perhaps using Applescript/Obj-C?
- Strange Overlay with NSWorkspace.shared.icon(forFile: )
- How to create NSImage from pixel array in Xcode for macOS app
- Loading NSImage from icon File takes very long for Visual Studio Code icon
- How to make a CALayer with NSImage dynamically adapt to the app appearance?
- In macOS can a CALayer that has an NSImage as its contents be encoded / decoded?
- Saving Modified NSImage to Disk with Exif Info from Original Image
- How can I scale an image while retaining quality when creating a PDF in Swift on macOS?
- textToImage shows different results in macOS
- Convert white pixels to transparency in NSImage / Swift - how to improve?
- How to resize an NSImageView in an NSStackView?
- @available function decorator not working on macOS
Related Questions in NSIMAGEREP
- Why is TIFFRepresentation bigger than the actual image file?
- NSBitmapImageRep load image
- NSImage drawInRect and NSView cacheDisplayInRect memory retained
- Best practice of storing and retrieving an NSImage in binary
- How to generate NSImage with specific resolution and specific size in mm
- Xcode 7 indicating heap buffer overflow in NSBitmapImageRep - bitmapData
- Making IKImageView aware of my custom NSImageRep
- Colored Artifacts while transforming PDF to NSImageRep (png)
- Most efficient way to glTexture from NSImage?
- Saving NSImage as PNG with no alpha and 5 bit colour
- NSImage and UIImage give different NSData representations
- How to implement -draw for custom NSImageRep subclass
- -[NSBitmapImageRep representationUsingType:properties:] export specific BMP configuration?
- CGImage APIs and ICO files
- Change CGImageDestination dpi
Related Questions in NSDOCKTILE
- How to create a customized dock menu for my macOS application in the dock using Xcode
- Swift - How can I get another application's NSDockTile object in Swift?
- Is there any way to display some count over an NSImage similar to badge label for Mac Application?
- Load app icon from xcassets on OS X
- Change color for setBadgelabel Node Webkit
- How to set badge notification for Qt on Mac
- How to show a badge on an NSView (Mac OS X)
- Dock Tile Plug-in not working
- Using layer backed NSView as NSDockTile contentView
- Finder file icon badging (icon overlay) on Mac OS X >= 10.6
- OSX/Cocoa : get Absolute position of docktile icon in screen
- Get Application badge of running applications
- How can I get the screen position of the DockTile in OSX?
- how to draw mac spinning wait cursor on application dock icon in cocoa
- Adding an NSProgressIndicator to the dock icon
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 # Hahtags
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?
As usual, I got my answer soon after posting the question :) I'll post it here for future reference: I solved it by creating
NSImageout of the layer as described in Cocoa is my girlfriend blog post here http://www.cimgf.com/2009/02/03/record-your-core-animation-animation/The only missing piece is that in order to have anything rendered, a view must be added to a window, so using example code from the post, my solution is: