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 Extract metadata MXF files
When in doubt, check the framework header directly, you can find the one you want in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaToolbox.framework/Versions/A/Headers/MTProfessionalVideoWorkflow.h
Topic: Media Technologies SubTopic: Audio Tags:
May ’24
Reply to Progress bar in NSTableCellView changes to other cell when scrolling
NSTableCellView are reused, to avoid wasting memory. So you will have to keep this in mind when designing the way you update the cells. One way to is subclass NSTableCellView, add a property that contains the object doing the work, and then observe the progress of the object. This avoid having to find the right cell everything. When a cell is reused, just swap the object and refresh the observers.
Topic: UI Frameworks SubTopic: AppKit
Jul ’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 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 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 Render h264 streams on visionOS
https://developer.apple.com/documentation/quartzcore/cametallayer
Replies
Boosts
Views
Activity
Mar ’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 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 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 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 Extract metadata MXF files
When in doubt, check the framework header directly, you can find the one you want in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaToolbox.framework/Versions/A/Headers/MTProfessionalVideoWorkflow.h
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Question regarding the kVTVideoEncoderList_IsHardwareAccelerated flag
From my experience, VideoToolbox dictionaries are often incomplete or wrong. Anyway, yes, H.264 and HEVC encoders and others are always hardware accelerated on iOS.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to IOSurface objects aren't released in ScreenCaptureKit
How are you getting the CVImageBufferRef? Are you releasing it after you are done? Try to run the clang static analyzer in Xcode.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Problem with setNeedsDisplay:
Are you sending setNeedsDisplay to the right view?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Keyboard and Mouse Input in C++ for MacOS
MetalCPP is simply an header wrapper around the Metal Objective-C API. It's already possible to call every Objective-C API from C++, by using Objective-C++ in a .mm file.
Replies
Boosts
Views
Activity
Jun ’24
Reply to AppleTV HD (4th A1625): is not able to play H265 with Fairplay DRM stream?
The AppleTV 4th doesn't have an hardware HEVC decoder, so decoding HEVC is limited to software, maybe there isn't enough CPU power to decode it when FairPlay DRM is used, or there is some arbitrary check that disables it.
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Progress bar in NSTableCellView changes to other cell when scrolling
NSTableCellView are reused, to avoid wasting memory. So you will have to keep this in mind when designing the way you update the cells. One way to is subclass NSTableCellView, add a property that contains the object doing the work, and then observe the progress of the object. This avoid having to find the right cell everything. When a cell is reused, just swap the object and refresh the observers.
Topic: UI Frameworks SubTopic: AppKit
Replies
Boosts
Views
Activity
Jul ’24