Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

NSImageView animation regression in Sonoma?

Before macOS Sonoma I could simply animate NSImageView size and position like this: _imageView.wantsLayer = YES; CALayer *layer = _imageView.layer; [CATransaction begin]; [...
Yansen13's user avatar
0 votes
1 answer
32 views

Make CAGradientLayer fill the entire CAShapeLayer

I try to add an CAGradientLayer on top of a CAShapeLayer, but I can't get the full frame of the ShapeLayer without messing up the position of the GradientLayer, so the edges seems clipped. See photos ...
Peter's user avatar
  • 1,878
0 votes
0 answers
70 views

Production Crash on ios 15: CA::Display::DisplayLink::timer_status_callback

Can someone help me about this crash. It's a production crash. I cannot replicate the issue nor understand the root cause . I searched related issue here (Crash on ios 15: CA::Display::DisplayLink::...
Robert John Matias Alkuino's user avatar
6 votes
2 answers
403 views

Xcode 14.3 deprecating QuartzCore APIs in a weird way

Apple deprecated some of the APIs for macOS screen capturing starting from Xcode 14.3. For example: CGDisplayStream.showCursor is marked as deprecated in macOS 13.0-13.3: However, when I check that ...
Ross Stepaniak's user avatar
0 votes
1 answer
459 views

Crash on ios 15: CA::Display::DisplayLink::timer_status_callback

My app crashed about 200 times per month on iOS 15, and I failed to solve it. The crash reports shows like following: Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: KERN_INVALID_ADDRESS at ...
wj2061's user avatar
  • 6,875
0 votes
1 answer
990 views

CATextLayer position and Transformation issue

I am trying to build a control like attached circle image with multiple segment having equal space for each part. Number of segments can change depend upon provided array. I have developed this so far ...
Surjeet Singh's user avatar
0 votes
0 answers
918 views

How to fix iOS crash " com.apple.main-thread SIGABRT ABORT"

I'm facing a crash occured 10 times from fabric log. But I can't reproduce it when connecting Xcode. 0 libsystem_kernel.dylib __pthread_kill + 8 1 libsystem_pthread.dylib pthread_kill$VARIANT$mp ...
Yvan's user avatar
  • 591
2 votes
2 answers
2k views

Rendering animated CALayer off-screen using CARenderer with MTLTexture

I want to render animated NSView (or just the underlying CALayer) into a series of images without the view being presented on the screen AT ALL. I figured how to do that with CARenderer and MTLTexture ...
Ian Bytchek's user avatar
  • 9,028
1 vote
1 answer
533 views

Get mouse button state in OSX

Is there any way to query the state of mouse buttons in OSX? In other words, I am looking for a function that returns whether a mouse button is currently being pressed or not. The equivalent under ...
user3700562's user avatar
1 vote
1 answer
393 views

Swift - Where is shadowOpacity on NSShadow?

I just discovered the unfortunate fact that setting the shadow properties of an NSView's backing layer on macOS does not cause the shadow to render. It seems that this only works for stand-alone ...
jeremyabannister's user avatar
1 vote
0 answers
265 views

iOS: Layer shadow path is not correct

I have UIView in my design and I need to allow user to change the corner radius. I have designed the testier using @IBDesignable and @IBInspectable. I am getting the expected shape(cornerRadius curve)...
iOS_Maccus's user avatar
0 votes
1 answer
1k views

How to set the contentGravity variable of CALayer to 'resizeAspectFill'?

I am trying to set the contentGravity variable of a CALayer but I am not quite sure how to do this. I have tried the following without success: var layer = CAShapeLayer.init() layer.contentGravity = ...
babylon's user avatar
  • 55
1 vote
0 answers
695 views

iOS 12-only QuartzCore crash on com.apple.coremedia.player.async

I've got a crash report on QuartzCore, which seems to only happened on iOS 12. It crashed on com.apple.coremedia.player.async. I've found several similar reports on Apple Developer Forums, but there ...
AnthoPak's user avatar
  • 4,361
3 votes
2 answers
2k views

How to make a CAGradientLayer follow a CGPath

Given a CAShapeLayer defining a path as in the picture below, I want to add a CAGradientLayer that follows the path of the shape layer. For example, given a gradient from black->red: the top right ...
user1366911's user avatar
1 vote
0 answers
724 views

How to highlight text in pdf using PdfKit

I am creating app where i need to load the pdf file from document directory and need to highlight text manually by user. Also we need to export the updated pdf file and upload it to the server. Is ...
SULEMAN BAWA's user avatar
1 vote
0 answers
1k views

Quartz job not running

I'm using the following beans for scheduling the quartz jobs: package com.sap.brms.repositoryservice.cp.cf.app.config; import java.io.IOException; import java.util.Properties; import javax.inject....
anmol kang's user avatar
0 votes
0 answers
343 views

Fabric error: QuartzCore (CA::Layer::set_bounds(CA::Rect const&, bool))

In my project I'm getting a lot of crashes for QuartzCore CA::Layer::set_bounds(CA::Rect const&, bool) From Fabric I get the following message. Heads Up! CALayerInvalidGeometry; CALayer ...
Hilalkah's user avatar
  • 1,005
0 votes
1 answer
284 views

How to append arrow head to UIBezierPath

I need help in adding arrow head to UIBezierPath. I have created multiple lines by using UIBezierPath, which are in different directions. Now, I want to create arrow head at the end point of the line. ...
Ruchira More's user avatar
0 votes
1 answer
135 views

UITextView returns inaccurate origin before text is inserted

The title pretty much tells it all. I would like to add a line right above a UITextView: override func viewWillLayoutSubviews() { super.viewWillLayoutSubviews() // will be implemented once ...
Dane Jordan's user avatar
  • 1,121
1 vote
0 answers
97 views

How to apply a view's gestures transform values to shapelayer

I have created a shape layer animation using bezier paths. So, I added a shape layer as a sublayer to view and drew on it. Pan, pinch and rotation gestures added to the view with the required delegate ...
ReB's user avatar
  • 107
0 votes
1 answer
58 views

How to format elapsedTime start at 00:00:00 instead of the default 07:00:00 in Swift

I cannot find a way to have the stopwatch display start at 00:00:00 using QuartzCore. It always starts at 07:00:00. Is there a way to format the start time to be 00:00:00? Code is below. Thanks!! ...
Starkus's user avatar
  • 147
2 votes
1 answer
984 views

Creating a CGImageDestinationRef with CGImageDestinationCreateWithURL in C++ returns NULL

I'm trying to take a screenshot for each monitor of my macOS 10.13 setup in C++ using methods available in the some OSX frameworks but using CGImageDestinationCreateWithURL to create a ...
Bogdan's user avatar
  • 461
0 votes
2 answers
78 views

How do I control animation timing along a NSBezier path?

In Apple's docs about CAKeyframeAnimation they say: "For most types of animations, you specify the keyframe values using the values and keyTimes properties. During the animation, Core ...
Bob Ueland's user avatar
  • 1,834
0 votes
1 answer
1k views

How to get corner points of Rect rotated in Core Graphics?

I have a CGRect which I have rotated using translation and rotation function as below:- let ctx: CGContext = UIGraphicsGetCurrentContext()! ctx.saveGState() let halfWidth = (...
iAviator's user avatar
  • 1,447
4 votes
1 answer
390 views

When tapping Quartz events, what is CGEventType 0x1D (29)?

When dealing with Quartz events I can not seem to find any documentation on what event 0x1D, 29 is and how to deal with it. I have looked here and at an assortment of header files... https://...
Dustin Simpson's user avatar
0 votes
1 answer
148 views

Why i fail to use mask of CAGradientLayer

I want to draw a button like this So I use CAGradientLayer , CAShapeLayer and UIBezierPath. Code like this: let gradientLayer: CAGradientLayer = CAGradientLayer.init() gradientLayer....
iCrany's user avatar
  • 115
0 votes
1 answer
841 views

Swift shapelayer set fill color not worked

I try to fill shapelayer with parallelogram path. let shapeLayer = CAShapeLayer() shapeLayer.lineWidth = 2.0 shapeLayer.fillColor = UIColor.blue.cgColor shapeLayer.strokeColor = UIColor....
juramoshkov's user avatar
0 votes
2 answers
3k views

How to center a sublayer on another layer?

I drew something on a CAShapeLayer(). Now I want to put it on anther layer. let layer = CAShapeLayer() // This is the layer I drew something on let imageView = UIImageView() // The imageView I want ...
JsW's user avatar
  • 1,748
0 votes
1 answer
140 views

Gradient mask not showing

I am trying to draw a gradient, fading in opacity. I see no effect from drawing. Tried changing the colors. The frames look right. Why isn't this opacity fade showing up? func createGradient() { ...
quantumpotato's user avatar
1 vote
0 answers
242 views

Exported PNG image looks scrambled when generated by CGWindowListCreateImage/PNGCanvas

I've got this Python code: import Quartz.CoreGraphics as cg region = cg.CGRectMake(0, 0, 100, 100) # You can also use cg.CGRectInfinite for the full screen. image = cg.CGWindowListCreateImage(region, ...
kenorb's user avatar
  • 164k
0 votes
0 answers
397 views

Screen frame render finished / presented callback

I'd like to know the exact moment when screen frame finishes rendering and gets displayed, so I can capture specific window images with quartz api. There is CVDisplayLink / CADisplayLink that allows ...
Ian Bytchek's user avatar
  • 9,028
1 vote
1 answer
2k views

CALayer sublayer shows up but context drawing within it not working

I created a custom UIView class where I override the draw(_ rect: CGRect) function. In it, I added a gradient (CAGradientLayer) sublayer (which works without much problem) and then add another ...
hundred_dolla_tea's user avatar
0 votes
1 answer
269 views

quartz core generating loads of VM: UILabel(CA Layer)

I have an app which drags messages dynamically from server, as scrolling to top, old messages will be retrieved and display on the screen like other messaging apps, but my app keeps generating UIlabel,...
chan sam's user avatar
0 votes
1 answer
244 views

UIView's cornerRadius does not affect view evenly

I am applying cornerRadius normally to a custom view as such: self.layer.cornerRadius = self.frame.size.height/2 However, I noticed that the resultant corner on the UIView is not evenly applied. ...
daspianist's user avatar
  • 5,455
0 votes
1 answer
327 views

trying to simulate fn keys from python in mac

I'm trying to simulate double fn keypress on mac to start dictation so far i have read all the docs on SO and applied a few solutions, but all in vain. I'm trying to open dictation from python code. ...
Krishna Kumar's user avatar
1 vote
1 answer
566 views

Drown dashed lines on swift getting weird

I'm trying to draw some dashed lines in an UIView but I don't know if I'm doing it right. The first dash has half width compared to the others. Code: let strokeColor = ...
denisb411's user avatar
  • 611
0 votes
1 answer
206 views

highlightedSelections in PDFView osx

The highlighted selections always appear in the same color even though I changed the color in PDFView (I am using OSX). So I need to know why and how can I fix this bug? pdfSelection.color = myColor /...
issam's user avatar
  • 697
0 votes
0 answers
775 views

Camel-Quartz2 route restarting fails

We are using Camel-Quartz2 version 2.12.0 with clustering environment everything is working as excepted, but the issue was when I try to restart the bundle, camel routes are not starting, stating the ...
salz's user avatar
  • 81
3 votes
1 answer
1k views

Render UIImageView with transform as CALayer for video editing

I'm making an app that adds "stickers" to a Video playing in a background view. The stickers are added as imageView which responds to pan, pinch and rotate gestures, zoom and rotate are then applied ...
Benjamin Jimenez's user avatar
1 vote
3 answers
440 views

Clip Drawing to Opaque (Stroke) Part of CAShapeLayer

I have a CAShapeLayer with an opaque stroke and a transparent fill. I then want to call myContext.drawRadialGradient, but have this radial gradient clip to the stroke of my shape layer. Currently, I'm ...
Connor Neville's user avatar
1 vote
0 answers
3k views

how to reschedule quartz job dynamically

I am trying to update the quartz job scheduling dynamically: Initially it is after every 3 minute, but dynamically i want to make it 1 min. here's my quartz.xml and java file quartz.xml <...
Sweta Prakash's user avatar
1 vote
0 answers
467 views

Can I have both cron and simple trigger for quartz?

I want to run Quartz Job using both triggers: cron and simple. Or are other ways to specify multiple intervals for one job? <trigger> <cron> <name>Trigger_Name</...
Victor Dumbravă's user avatar
1 vote
2 answers
75 views

How get textfield with some corners rounded?

I use next code: - (void)setMaskByRoundingCorners:(UIRectCorner)corners withCornerRadius:(float)radius { UIBezierPath* rounded = [UIBezierPath bezierPathWithRoundedRect:self.bounds ...
Viktorianec's user avatar
1 vote
0 answers
194 views

Drawing Retina resolution on CGDisplayGetDrawingContext

I have a situation were I'm trying to draw an image into a display's CGContext retrieved using CGDisplayGetDrawingContext. Despite having the image at the correct high resolution, using ...
Taha's user avatar
  • 381
2 votes
0 answers
379 views

Resetting mask on CAShapeLayer causes view to briefly appear at full alpha

I have a UIView which adds a CAShapeLayer as a sublayer to its layer. The UIView is at partial alpha. The CAShapeLayer is just a solid colored shape. I set the mask property of the CAShapeLayer to ...
Luke's user avatar
  • 7,200
0 votes
1 answer
358 views

org.quartz-scheduler nullify the reference of repository in the executeInternal(JobExecutionContext executionContext) why?

Its an observation and would like to share the information to know why executeInternal() nullify the reference of customerRepository? I was developing Spring + Quartz + Spring Data JPA example. In ...
user avatar
0 votes
0 answers
267 views

OS X using Quartz event services to generate/simulate touch gestures: pinch, rotate, swipe, etc.

I'm trying to achieve simulation/generation of touch gesture events on OS X. I try something like this but it doesn't work: void touch_begin_gesture(float x, float y) { /** * create a new ...
Michał Ziobro's user avatar
2 votes
3 answers
1k views

How to add property to UIButton?

thanks for all help:)! fixed it using iboutlet collection and add properies on viewDidLoad I'm trying to add properties to keyboard keys like layer.shadowColor or layer.shadowRadius. I got an error ...
Yumin Hwang's user avatar
7 votes
3 answers
18k views

Spring, Run task once when application started

My application is based on spring boot. I want to create a task which should be run only once after application has been started. Currently, I am looking into two solutions: Using @Scheduled and ...
Hutsul's user avatar
  • 1,681
0 votes
1 answer
566 views

crash while trying push view controllers with animation

I have code to store references to 3 Viewcontrollers (say of class typeA) on UINavigation controller stack, and later all these view controllers are popped out of stack. Later upon button click, I ...
n devaraj's user avatar
  • 144

1
2 3 4 5
9