Post

Replies

Boosts

Views

Activity

Reply to Toll-free bridging
I don't think the second snippet would be fixed by writing NSString *ns = (__bridge_transfer NSString *)CFBridgingRelease(string); because as far as I know, __bridge_transfer is basically the same as CFBridgingRelease. The problem with the second snippet is that when the local variable ns goes out of scope, the string will be released, but the local variable string is not set to nil, hence CFRelease will be passed a bad pointer.
Topic: App & System Services SubTopic: General Tags:
Mar ’23
Reply to A glitch of CGContextSetFillPattern glitch on Ventura
I tried your project and it does reproduce. I notice that I don't see the glitch if I increase the step parameters to CGPatternCreate, putting gaps between the cells. You should send a bug report with Feedback Assistant. This forum is not an official channel for reporting bugs. By the way, you can simplify your code sample a bit. Instead of passing the size as a dictionary, pass &_size in the CGPatternCreate call, and then say CGFloat size = *(CGFloat*) info; in the callback.
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’23
Reply to AXIsProcessTrusted returns wrong value in osX Ventura 13.0+
Quinn, when I said I have an “active” tap, I meant I need to be able to post events. I was aware of CGPreflightPostEventAccess and CGRequestPostEventAccess (probably heard about them in one of your other posts). (The Settings app displays that access as accessibility trust, though it may not be quite the same internally.) But in my experience, they don’t change their results “live”. That is, if I get a false result from CGPreflightPostEventAccess, then while my app runs, go to Settings and grant the permission, then go back to my app and check the result, it’s still false.
Apr ’23