Post

Replies

Boosts

Views

Activity

Reply to Cocoa [NSView viewDidLoad] debugging
Calling a method on an object that has no implementation of that method should generate an exception, that should be printed in the log when running inside Xcode. Or you could override NSApplication - (void)reportException:(NSException *)exception and handle it on your own.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to for 420v, camera output CVPixelBuffer, Y channel value exceed the range [16, 235]
Video range means that black is 16 and white is 235, then there are super black and super white, that were historically useful when you had to color correct the video and restore missing details because the image exposure was not the best one. How are you converting from YpCbCr to RGB and back? Are you converting back to limited range or to full range.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’24
Reply to How to maintain order when converting jsonstring to NSDictionary using NSJSONSerialization
NSDictionary doesn't make any guarantee about order, it's a data structure that is not meant to be ordered, so it's not a surprise the result looks like that. There is a NSJSONWritingSortedKeys option if you want things in lexicographic order when converting from NSObjects to json. If not you will have to use an NSArray.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to MacOS: Hidden Windows cannot be fetched in NSApp
Keep an array somewhere with all the windows you've created, and get them from this array.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Cocoa [NSView viewDidLoad] debugging
Calling a method on an object that has no implementation of that method should generate an exception, that should be printed in the log when running inside Xcode. Or you could override NSApplication - (void)reportException:(NSException *)exception and handle it on your own.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Access Desktop folder from appstore macOS application (sandboxed)
The correct way is to show an NSOpenPanel and ask the user to open the Desktop folder. Then store the security scoped bookmark.
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Render h264 streams on visionOS
https://developer.apple.com/documentation/quartzcore/cametallayer
Replies
Boosts
Views
Activity
Mar ’24
Reply to macOS UserDefaults auto-populates older after deleting and saving data
User defaults are cached, so if you want to remove them and clear the cache use the defaults cli command.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to NSMutableDictionary removeAllObjects does not free up used memory!
Maybe you need an autorelease pool.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Objective C implementation of Spatial Video(MV-HEVC) Maker
It seems the C version is called CMTaggedBufferGroup.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Problem with code signing
The executable is trying to load some unsigned libraries from /usr/local/opt/, that can't be loaded because it was signed with the hardened runtime enabled. Maybe there is a way to do a static build with that library included? I never used gfortran, so I can't help more than this.
Replies
Boosts
Views
Activity
Feb ’24
Reply to for 420v, camera output CVPixelBuffer, Y channel value exceed the range [16, 235]
Video range means that black is 16 and white is 235, then there are super black and super white, that were historically useful when you had to color correct the video and restore missing details because the image exposure was not the best one. How are you converting from YpCbCr to RGB and back? Are you converting back to limited range or to full range.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Decompress Video toolbox video on non-Apple hardware?
Of course, VideoToolbox will create encoded data with the specification of the format you selected. It will be decodable on every other hardware.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to _AssertAutoLayoutOnAllowedThreadsOnly
The issue was triggered by thread 36, but you didn't post the stack trace of that thread, so it's not possible to know what's going wrong.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to CoreAutoLayout: _AssertAutoLayoutOnAllowedThreadsOnly + 328
You are calling some UIKit methods on a different thread. UIKit mostly can be used only from the main thread. You've got a NSURLSession that runs a callback on a background thread and then calls UIKit. The main thread checker is useful to catch this kind of issues.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Missing mouseUp events
In my experience mouse tracking is so broken in macOS 13, and now even more in 14. I would write yet another feedback in the Feedback Assistant app.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Microsoft Visual Studio Version -vs- XCode Versions Compatibility
"Work together" in which way? Those are two totally unrelated apps with two totally different toolchains and project formats.
Replies
Boosts
Views
Activity
Jan ’24