Manipulate time-based media using QTKit.

Posts under QTKit tag

4 Posts

Post

Replies

Boosts

Views

Activity

Changing Dock Icon for my Qt app
Hello, I'm trying to make a white-Label sort of thing for my app, that is: a script runs before the app launches, sets a certain LaunchAgent command that sets and environment variable, and based on that variable's value tha main app's icon changes to a certain logo (change only happens in the dock because changing the icon on disk breaks the signature) When the app launches it takes a noticeable time until the dock icon changes to what I want, so I worked around that by setting the app's plist property to hide the dock icon and then when the app is launched I call an objc++ function to display the icon in the dock again (this time it displays as the new icon) The showing happens through [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; The problem happens when I try to close the app, it returns back to the old logo before closing which is what I want to prevent. I tried hiding the app dock icon before closing but even the hiding itself changes the icon before hiding The hiding happens through [NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited]; My goal is that the main app icon doesn't appear to the user through the dock, and that the icon that is only visible is the other one that changes during runtime The reason for this is that I have an app that should be visible differently depending on an environment variable that I set using an installer app. The app is the same for all users with very minor UI adjustments depending on that env variable's value. So instead of creating different versions of the app I'd like to have just 1 version that adjusts differently depending on the env variable's value. Somehow this is the only step left to have a smooth experience Feel free to ask more clarification questions I'd be happy to help Thank you
5
0
871
Jan ’26
Changing the menu bar display name
Hello, I'm currently working on an app that will have a different name (and UI) depending on an environment variable that is set by that app's custom installer that I also wrote. I'm trying to change the app name that is displayed in the menu bar (top left) programmatically. I've done some research and found that it's probably not possible to do so because it's fetched from the app's Info.plist The answer is probably already there but I'll ask the question: Is it possible to change the app's name in the menu bar without tampering with the Info.plist (as it will break the signature at runtime, and it can't be done at compile time) The use case here is that I'm shipping a single app with multiple installers, because the app will be the same for all sets of users but it will have minor UI changes (which in my opinion, don't need an entire separate release), the installers will set a flag that the app will, based on, change its UI to the corresponding set of users. For the most part it's been successful but only small issue remain like this one. The reason it's done like that is when updating I'll ship 1 release for all users to update rather than having to ship multiple releases with no difference between them
1
0
377
Jan ’26
Quicktime Interactivity?
Is it still possible to tutor a QuickTime movie with hyperlinks? I'm building a website and I know at one point you could author a QuickTime movie that supported links inside the video - either to other timestamps in the video or to other web pages. I don't want to use a custom player, I'd prefer to use the system level. I've seen a really amazing example of this on the mobile version of the memory alpha (Star Trek nerds!) website. There is a movie that plays at the top of pages that is fully interactive. Is that still supported? Is it possible to author that way? I'm not making anything insanely complicate, I just thought it would be a nice way to build a website with tools I'm more comfortable working in.
1
0
1.2k
Aug ’23
[[NSWorkspace sharedWorkspace]launchApplicationAtURL:bURL options:NSWorkspaceLaunchNewInstance|NSWorkspaceLaunchDefault configuration:dict error:&error] crash
Process: Roombox [5679] Path: /Applications/Roombox.app/Contents/Developer/Roombox.app/Contents/MacOS/Roombox Identifier: Roombox Version: 2.7.0 (540) Code Type: X86-64 (Native) Parent Process: launchd [1] Responsible: Roombox [5679] User ID: 501 Date/Time: 2022-03-17 14:37:52.630 +0800 OS Version: macOS 11.6.1 (20G224) Report Version: 12 Anonymous UUID: 91C26615-6D4C-81F1-B66C-D1315045ADE0 Sleep/Wake UUID: FB29320A-F382-488C-B83F-490E94CAC8FE Time Awake Since Boot: 16000 seconds Time Since Wake: 1300 seconds System Integrity Protection: enabled Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread Exception Type: EXC_GUARD Exception Codes: 0x4000001000000000, 0x08fd4dbfade2dead Exception Subtype: GUARD_TYPE_FD, id=0x08fd4dbfade2dead, fd=0, flavor=0x00000010 (FILEPORT) Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff203c9f2a fileport_makeport + 10 1 libxpc.dylib 0x00007fff20147373 _xpc_fileport_makeport + 9 2 libxpc.dylib 0x00007fff20147334 xpc_fd_create + 27 3 libxpc.dylib 0x00007fff201486cf xpc_dictionary_set_fd + 23 4 com.apple.LaunchServices 0x00007fff209ea050 _CASNotifyServerSideAboutLaunchedApplication(LSSessionID, __CFDictionary const*, int, __CFDictionary const*, int, bool, __CFDictionary const**) + 550 5 com.apple.LaunchServices 0x00007fff209ffe4c _LSLaunchWithRunningboard(LSContext*, FSNode*, unsigned int, void*, __CFArray const*, AEDesc const*, AEDesc const*, NSArray<LSSliceInfo*>, __CFDictionary const, unsigned int, audit_token_t const*, _LSOpen2Options const*, ProcessSerialNumber*, NSError* __autoreleasing*) + 24181 6 com.apple.LaunchServices 0x00007fff209f9e8e _LSLaunch + 171 7 com.apple.LaunchServices 0x00007fff2096f690 _LSOpenApp(LSOpenState*, unsigned int, FSNode*, unsigned int, unsigned char*, ProcessSerialNumber*) + 1135 8 com.apple.LaunchServices 0x00007fff2096d273 _LSOpenItemsWithHandler_CFDictionaryApplier(void const*, void const*, void*) + 1442 9 com.apple.CoreFoundation 0x00007fff204f3902 __CFDictionaryApplyFunction_block_invoke + 22 10 com.apple.CoreFoundation 0x00007fff204bbeae CFBasicHashApply + 110 11 com.apple.CoreFoundation 0x00007fff204ae71f CFDictionaryApplyFunction + 131 12 com.apple.LaunchServices 0x00007fff2096bce0 _LSOpenStuffCallLocal + 9322 13 com.apple.LaunchServices 0x00007fff20967dd1 _LSOpenStuff + 1641 14 com.apple.LaunchServices 0x00007fff20a22898 _LSOpenApplication_Common(LSApplicationParameters_V1 const*, AEKeyDesc const*, ProcessSerialNumber*, __CFURL const**) + 168 15 com.apple.LaunchServices 0x00007fff20a229a3 _LSOpenApplicationURL + 174 16 com.apple.AppKit 0x00007fff235c73d5 -[NSWorkspace launchApplicationAtURL:options:configuration:error:] + 330 17 libApplication.dylib 0x000000010c1e90fa Tools::os_create_process(char const*, char const*, char*) + 394 18 libApplication.dylib 0x000000010c1cd0b4 std::__1::__bind_return<Application::ExePluginProcessHost::Create(char const*, char const*, std::__1::function<void (int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>)::$_1, std::__1::tuple<>, std::__1::tuple<>, __is_valid_bind_return<Application::ExePluginProcessHost::Create(char const*, char const*, std::__1::function<void (int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>)::$_1, std::__1::tuple<>, std::__1::tuple<> >::value>::type std::__1::__bind<Application::ExePluginProcessHost::Create(char const*, char const*, std::__1::function<void (int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>)::$_1&>::operator()<>() + 84 19 libApplication.dylib 0x000000010c1d1123 Application::ThreadTaskMgr::ProcessMainThreadTask() + 627 20 org.qt-project.QtCore 0x000000010d2d385f QObject::event(QEvent*) + 111 21 org.qt-project.QtWidgets 0x000000010c4ee9ea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266 22 org.qt-project.QtWidgets 0x000000010c4efe11 QApplication::notify(QObject*, QEvent*) + 497 23 org.qt-project.QtCore 0x000000010d2a8a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212 24 org.qt-project.QtCore 0x000000010d30e35f QTimerInfoList::activateTimers() + 991 25 libqcocoa.dylib 0x0000000110a348f2 0x1109fc000 + 231666 26 com.apple.CoreFoundation 0x00007fff204f22bc CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 27 com.apple.CoreFoundation 0x00007fff204f2224 __CFRunLoopDoSource0 + 180 28 com.apple.CoreFoundation 0x00007fff204f1fa4 __CFRunLoopDoSources0 + 242 29 com.apple.CoreFoundation 0x00007fff204f09cc __CFRunLoopRun + 893 30 com.apple.CoreFoundation 0x00007fff204eff8c CFRunLoopRunSpecific + 563 31 com.apple.HIToolbox 0x00007fff28737a83 RunCurrentEventLoopInMode + 292 32 com.apple.HIToolbox 0x00007fff287376b6 ReceiveNextEventCommon + 284 33 com.apple.HIToolbox 0x00007fff28737583 _BlockUntilNextEventMatchingListInModeWithFilter + 70 34 com.apple.AppKit 0x00007fff22cf9172 _DPSNextEvent + 864 35 com.apple.AppKit 0x00007fff22cf7945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364 36 com.apple.AppKit 0x00007fff22ce9c69 -[NSApplication run] + 586 37 libqcocoa.dylib 0x0000000110a3562f 0x1109fc000 + 235055 38 org.qt-project.QtCore 0x000000010d2a4acf QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 431 39 org.qt-project.QtCore 0x000000010d2a9042 QCoreApplication::exec() + 130 40 cn.xdf.gkroombox 0x000000010c166a60 main + 896 41 libdyld.dylib 0x00007fff20415f3d start + 1 **I need create new sub app from host app , but create it sometimes crash!!! **
0
0
817
Mar ’22
Changing Dock Icon for my Qt app
Hello, I'm trying to make a white-Label sort of thing for my app, that is: a script runs before the app launches, sets a certain LaunchAgent command that sets and environment variable, and based on that variable's value tha main app's icon changes to a certain logo (change only happens in the dock because changing the icon on disk breaks the signature) When the app launches it takes a noticeable time until the dock icon changes to what I want, so I worked around that by setting the app's plist property to hide the dock icon and then when the app is launched I call an objc++ function to display the icon in the dock again (this time it displays as the new icon) The showing happens through [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; The problem happens when I try to close the app, it returns back to the old logo before closing which is what I want to prevent. I tried hiding the app dock icon before closing but even the hiding itself changes the icon before hiding The hiding happens through [NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited]; My goal is that the main app icon doesn't appear to the user through the dock, and that the icon that is only visible is the other one that changes during runtime The reason for this is that I have an app that should be visible differently depending on an environment variable that I set using an installer app. The app is the same for all users with very minor UI adjustments depending on that env variable's value. So instead of creating different versions of the app I'd like to have just 1 version that adjusts differently depending on the env variable's value. Somehow this is the only step left to have a smooth experience Feel free to ask more clarification questions I'd be happy to help Thank you
Replies
5
Boosts
0
Views
871
Activity
Jan ’26
Changing the menu bar display name
Hello, I'm currently working on an app that will have a different name (and UI) depending on an environment variable that is set by that app's custom installer that I also wrote. I'm trying to change the app name that is displayed in the menu bar (top left) programmatically. I've done some research and found that it's probably not possible to do so because it's fetched from the app's Info.plist The answer is probably already there but I'll ask the question: Is it possible to change the app's name in the menu bar without tampering with the Info.plist (as it will break the signature at runtime, and it can't be done at compile time) The use case here is that I'm shipping a single app with multiple installers, because the app will be the same for all sets of users but it will have minor UI changes (which in my opinion, don't need an entire separate release), the installers will set a flag that the app will, based on, change its UI to the corresponding set of users. For the most part it's been successful but only small issue remain like this one. The reason it's done like that is when updating I'll ship 1 release for all users to update rather than having to ship multiple releases with no difference between them
Replies
1
Boosts
0
Views
377
Activity
Jan ’26
Quicktime Interactivity?
Is it still possible to tutor a QuickTime movie with hyperlinks? I'm building a website and I know at one point you could author a QuickTime movie that supported links inside the video - either to other timestamps in the video or to other web pages. I don't want to use a custom player, I'd prefer to use the system level. I've seen a really amazing example of this on the mobile version of the memory alpha (Star Trek nerds!) website. There is a movie that plays at the top of pages that is fully interactive. Is that still supported? Is it possible to author that way? I'm not making anything insanely complicate, I just thought it would be a nice way to build a website with tools I'm more comfortable working in.
Replies
1
Boosts
0
Views
1.2k
Activity
Aug ’23
[[NSWorkspace sharedWorkspace]launchApplicationAtURL:bURL options:NSWorkspaceLaunchNewInstance|NSWorkspaceLaunchDefault configuration:dict error:&error] crash
Process: Roombox [5679] Path: /Applications/Roombox.app/Contents/Developer/Roombox.app/Contents/MacOS/Roombox Identifier: Roombox Version: 2.7.0 (540) Code Type: X86-64 (Native) Parent Process: launchd [1] Responsible: Roombox [5679] User ID: 501 Date/Time: 2022-03-17 14:37:52.630 +0800 OS Version: macOS 11.6.1 (20G224) Report Version: 12 Anonymous UUID: 91C26615-6D4C-81F1-B66C-D1315045ADE0 Sleep/Wake UUID: FB29320A-F382-488C-B83F-490E94CAC8FE Time Awake Since Boot: 16000 seconds Time Since Wake: 1300 seconds System Integrity Protection: enabled Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread Exception Type: EXC_GUARD Exception Codes: 0x4000001000000000, 0x08fd4dbfade2dead Exception Subtype: GUARD_TYPE_FD, id=0x08fd4dbfade2dead, fd=0, flavor=0x00000010 (FILEPORT) Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff203c9f2a fileport_makeport + 10 1 libxpc.dylib 0x00007fff20147373 _xpc_fileport_makeport + 9 2 libxpc.dylib 0x00007fff20147334 xpc_fd_create + 27 3 libxpc.dylib 0x00007fff201486cf xpc_dictionary_set_fd + 23 4 com.apple.LaunchServices 0x00007fff209ea050 _CASNotifyServerSideAboutLaunchedApplication(LSSessionID, __CFDictionary const*, int, __CFDictionary const*, int, bool, __CFDictionary const**) + 550 5 com.apple.LaunchServices 0x00007fff209ffe4c _LSLaunchWithRunningboard(LSContext*, FSNode*, unsigned int, void*, __CFArray const*, AEDesc const*, AEDesc const*, NSArray<LSSliceInfo*>, __CFDictionary const, unsigned int, audit_token_t const*, _LSOpen2Options const*, ProcessSerialNumber*, NSError* __autoreleasing*) + 24181 6 com.apple.LaunchServices 0x00007fff209f9e8e _LSLaunch + 171 7 com.apple.LaunchServices 0x00007fff2096f690 _LSOpenApp(LSOpenState*, unsigned int, FSNode*, unsigned int, unsigned char*, ProcessSerialNumber*) + 1135 8 com.apple.LaunchServices 0x00007fff2096d273 _LSOpenItemsWithHandler_CFDictionaryApplier(void const*, void const*, void*) + 1442 9 com.apple.CoreFoundation 0x00007fff204f3902 __CFDictionaryApplyFunction_block_invoke + 22 10 com.apple.CoreFoundation 0x00007fff204bbeae CFBasicHashApply + 110 11 com.apple.CoreFoundation 0x00007fff204ae71f CFDictionaryApplyFunction + 131 12 com.apple.LaunchServices 0x00007fff2096bce0 _LSOpenStuffCallLocal + 9322 13 com.apple.LaunchServices 0x00007fff20967dd1 _LSOpenStuff + 1641 14 com.apple.LaunchServices 0x00007fff20a22898 _LSOpenApplication_Common(LSApplicationParameters_V1 const*, AEKeyDesc const*, ProcessSerialNumber*, __CFURL const**) + 168 15 com.apple.LaunchServices 0x00007fff20a229a3 _LSOpenApplicationURL + 174 16 com.apple.AppKit 0x00007fff235c73d5 -[NSWorkspace launchApplicationAtURL:options:configuration:error:] + 330 17 libApplication.dylib 0x000000010c1e90fa Tools::os_create_process(char const*, char const*, char*) + 394 18 libApplication.dylib 0x000000010c1cd0b4 std::__1::__bind_return<Application::ExePluginProcessHost::Create(char const*, char const*, std::__1::function<void (int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>)::$_1, std::__1::tuple<>, std::__1::tuple<>, __is_valid_bind_return<Application::ExePluginProcessHost::Create(char const*, char const*, std::__1::function<void (int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>)::$_1, std::__1::tuple<>, std::__1::tuple<> >::value>::type std::__1::__bind<Application::ExePluginProcessHost::Create(char const*, char const*, std::__1::function<void (int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>)::$_1&>::operator()<>() + 84 19 libApplication.dylib 0x000000010c1d1123 Application::ThreadTaskMgr::ProcessMainThreadTask() + 627 20 org.qt-project.QtCore 0x000000010d2d385f QObject::event(QEvent*) + 111 21 org.qt-project.QtWidgets 0x000000010c4ee9ea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266 22 org.qt-project.QtWidgets 0x000000010c4efe11 QApplication::notify(QObject*, QEvent*) + 497 23 org.qt-project.QtCore 0x000000010d2a8a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212 24 org.qt-project.QtCore 0x000000010d30e35f QTimerInfoList::activateTimers() + 991 25 libqcocoa.dylib 0x0000000110a348f2 0x1109fc000 + 231666 26 com.apple.CoreFoundation 0x00007fff204f22bc CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 27 com.apple.CoreFoundation 0x00007fff204f2224 __CFRunLoopDoSource0 + 180 28 com.apple.CoreFoundation 0x00007fff204f1fa4 __CFRunLoopDoSources0 + 242 29 com.apple.CoreFoundation 0x00007fff204f09cc __CFRunLoopRun + 893 30 com.apple.CoreFoundation 0x00007fff204eff8c CFRunLoopRunSpecific + 563 31 com.apple.HIToolbox 0x00007fff28737a83 RunCurrentEventLoopInMode + 292 32 com.apple.HIToolbox 0x00007fff287376b6 ReceiveNextEventCommon + 284 33 com.apple.HIToolbox 0x00007fff28737583 _BlockUntilNextEventMatchingListInModeWithFilter + 70 34 com.apple.AppKit 0x00007fff22cf9172 _DPSNextEvent + 864 35 com.apple.AppKit 0x00007fff22cf7945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364 36 com.apple.AppKit 0x00007fff22ce9c69 -[NSApplication run] + 586 37 libqcocoa.dylib 0x0000000110a3562f 0x1109fc000 + 235055 38 org.qt-project.QtCore 0x000000010d2a4acf QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 431 39 org.qt-project.QtCore 0x000000010d2a9042 QCoreApplication::exec() + 130 40 cn.xdf.gkroombox 0x000000010c166a60 main + 896 41 libdyld.dylib 0x00007fff20415f3d start + 1 **I need create new sub app from host app , but create it sometimes crash!!! **
Replies
0
Boosts
0
Views
817
Activity
Mar ’22