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
956 Views Asked by Tom At
1
There are 1 best solutions below
Related Questions in CALAYER
- Unexpected CALayer Vertical Flipping on 3D Rotation 'Bounce'
- Drawing in UIView on touch points gives blurr drawing effect on boundaries
- iOS Apply CATransform3D on every frame
- Remove CALayers from Parent UIView
- Extra CALayer's subLayers in iOS
- Swift: Mask Alignment + Auto-Layout Constraints
- CALayer behaves differently when creating anew vs when applying CATransform3dIdentity
- apply clear color in CALayer
- Setting layer out of layer in UIbutton?
- Mask CALayer with Another CALayer
- CALayer shadowColor not changing
- Where to call setNeedsDisplay in order to update CALayer?
- Circular Progress Bars with Indicator
- How To Apply Complex CALayer Transform Changes?
- Animation in AppDelegate of iOS App
Related Questions in NSVIEW
- Swift - AVFoundation on OS X adding sublayer issue
- Xcode Storyboard "Embed In" Scroll View blanks view controller OSX
- Overuse of NSView -> Alternatives?
- rounded corners on NSView using NSBezierPath are drawn badly
- NSView* from wxPython
- Layer-backed NSView subclass causes z-index issue on its non layer-backed superview
- Move a NSWindow by dragging a NSView
- Access NSProgressIndicator outside of NSTableViewDelegate method
- NSView dataWithPDF inside rect but with background view
- Mac OSX swift resize video view
- NSView cannot be resized because of subview size set programmatically
- Instantiate NSView with custom objects in it using NSNib
- How do I optimise Cocoa drawing to ensure smooth scrolling
- NSView constraints work on subviews?
- Get Image from CALayer or NSView (swift 3)
Related Questions in NSIMAGE
- CMYK NSImage get pixel data
- Set background color of NSImageView with proportionally sized image
- When using UIImageJPEGRepresentation what number retains full resolution?
- NSImage initWithContentsOfURL missing alpha channel when loading TIFFs
- NSImageView: display large images
- NSImage returns nil even when png file is in Resource folder
- NSColor colorWithPatternImage: Vs. NSImage drawInRect:fromRect:operation:fraction:
- Fastest way to apply a Gaussian Blur on a image without Core-Animation
- NSImage and UIImage give different NSData representations
- Create Image programmatically in Objective-C
- drawRect not drawing NSImage
- Resizing of NSImage not working
- Loading image to Image Cell from URL
- Create and write paletted RGBA PNG using NSImage
- Memory Continues to Increase when Loading and Releasing NSImage
Related Questions in NSIMAGEREP
- NSImage and UIImage give different NSData representations
- Create and write paletted RGBA PNG using NSImage
- Change CGImageDestination dpi
- CGImage APIs and ICO files
- How to compress jpeg image with Cocoa?
- NSImage drawInRect and NSView cacheDisplayInRect memory retained
- NSBitmapImageRep load image
- How to Implement Custom Image representation for NSImage
- 32 bits big endian floating point data to CGImage
- NSImage size is wrong
- Making IKImageView aware of my custom NSImageRep
- NSImageRep wrong resolution?
- How to avoid a NSCachedImageRep
- NSBitmapImageRep and multi-page TIFFs
- NSImageRep confusion
Related Questions in NSDOCKTILE
- how to draw mac spinning wait cursor on application dock icon in cocoa
- Change color for setBadgelabel Node Webkit
- OSX/Cocoa : get Absolute position of docktile icon in screen
- How to show a badge on an NSView (Mac OS X)
- How to set badge notification for Qt on Mac
- How can I get the screen position of the DockTile in OSX?
- Finder file icon badging (icon overlay) on Mac OS X >= 10.6
- Swift - How can I get another application's NSDockTile object in Swift?
- How to create a customized dock menu for my macOS application in the dock using Xcode
- Is there any way to display some count over an NSImage similar to badge label for Mac Application?
- Adding an NSProgressIndicator to the dock icon
- Load app icon from xcassets on OS X
- Dock Tile Plug-in not working
- Adding a number to the dock icon
- Using layer backed NSView as NSDockTile contentView
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?
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: