Post

Replies

Boosts

Views

Activity

Reply to How to Create ASIF Disk Image Programmatically in Swift?
[quote='844104022, Engineer, /thread/788482?answerId=844104022#844104022'] This updated code sample uses the ASIF disk format: [/quote] Thanks for the info. Does this work in Sandboxed environment? and i have few more questions. How can i resize(changing max size) the sparse image programmatically in sandboxed environment? How can i compact the sparse image programmatically in sandboxed environment?
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’25
Reply to Spotlight Importer Extension Not Triggered for Custom UTI on macOS
Sorry i have overlooked when i ran the mdimport command i get the message saying updated attributes with the list of attributes i am setting in ImportExtension. But when i try to search with mdfind nothing is found. and in mdls the attributes are not listed. not sure whats happening. Why doesn't spotlight see the updated attributes. I am not sure how to debug this? Any help would be appreciated. thanks
Topic: App & System Services SubTopic: General Tags:
Jun ’25
Reply to Trackpad Right-Click (Two-Finger Tap) Support in Linux Guests – macOS Virtualization Framework
With Virtualization framework, the Mac uses the system gestures and pass the semantic to the guest Linux. For example, if configured as such, the two-fingers tap on the Mac would become a right-mouse click in Linux. Thank you for the reply. This does not work. I have the two finger tap enabled in the host but in linux guest it is not working. even ctrl + click is also not working for right click. I have tested this in debian and ubuntu. Not sure how to get right click work on linux guests
May ’25
Reply to Host-Only Networking and Port Forwarding Support in macOS Virtualization Framework
Thanks for the heads up. i will create a feature request. This is not just to get a channel between host and guest. This is for creating isolated host only network with guest and also a port forward from host to guest. i am trying to add these features to my virtual machine manager application. I dont have expertise in creating user space networking.
Topic: App & System Services SubTopic: Core OS Tags:
May ’25
Reply to Show main window of SwiftUI app on macOS Sequoia after auto start
I am also having the problem. as a workaround if i trigger this func func triggerNewWindowMenuItem() { guard let mainMenu = NSApp.mainMenu else { return } // Locate the "File" menu if let fileMenuItem = mainMenu.items.first(where: { $0.title == "File" }), let fileSubmenu = fileMenuItem.submenu { // Locate the "New Window" item by title if let newWindowMenuItem = fileSubmenu.items.first(where: { $0.title == "New Window" }), let action = newWindowMenuItem.action { // Trigger its action NSApp.sendAction(action, to: newWindowMenuItem.target, from: nil) } } } func applicationDidFinishLaunching(_ notification: Notification) { if NSApp.windows.isEmpty { self.triggerNewWindowMenuItem() } It just a workaround. hope apple comes up with a proper fix for this.
Topic: UI Frameworks SubTopic: SwiftUI
Apr ’25
Reply to Resize disk image with hdiutil in sandbox environment
Hmmm, and that works? Yes it works. there are some blocks like relocating the recovery partition to end( that can be done) and after that using disk utility we can resize main partition. but the hdiutil snadbox limitation makes not possible to do with appstore app. may be ,i need to release a separate tool for this without app sandbox to get it done.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’25
Reply to Resize disk image with hdiutil in sandbox environment
Is your app sandboxed because you plan to ship in the Mac App Store? Or just because it’s the right thing to do? I have the only option to distibute it to appstore because i cant manage the payment details outside of the appstore because it is very small business. How does this disk image fit into your virtualisation product? Specifically, what overall format is it? And what file system do you have on it? And how are you attaching it to your VM? And is your VM focused on macOS? Or Linux? Or both? The disk image format is img i attach it as a virtio blcok device as metnioned. i just followed this article Creating mac os virtual machine for creating and attaching to the virtual machine. The vm is focused on both linux and macOS. the files system in mac os apfs and in linux it is ext4. What are the other options i have got. By the way this is the app VirtualProg i have got in the appstore. Resizing the hard disk image within the app will add value to the product. that is i am here. thanks
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’25
Reply to How to Create ASIF Disk Image Programmatically in Swift?
[quote='844104022, Engineer, /thread/788482?answerId=844104022#844104022'] This updated code sample uses the ASIF disk format: [/quote] Thanks for the info. Does this work in Sandboxed environment? and i have few more questions. How can i resize(changing max size) the sparse image programmatically in sandboxed environment? How can i compact the sparse image programmatically in sandboxed environment?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Spotlight Importer Extension Not Triggered for Custom UTI on macOS
i just tried adding debug log messages inside ImportExtension and it is getting logged when i call the mdimport manually but when i reindex the volume it is not being called and nothing is logged.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Spotlight Importer Extension Not Triggered for Custom UTI on macOS
Sorry i have overlooked when i ran the mdimport command i get the message saying updated attributes with the list of attributes i am setting in ImportExtension. But when i try to search with mdfind nothing is found. and in mdls the attributes are not listed. not sure whats happening. Why doesn't spotlight see the updated attributes. I am not sure how to debug this? Any help would be appreciated. thanks
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Spotlight Importer Extension Not Triggered for Custom UTI on macOS
Found a solution it seems to be that -d -t is not applicabale for modern importer. when i ran it with mdimport -m -y com.makeprog.vpvm -u file:///Users/you/Path/To/YourVM.vpvm it returning the attributes set by ImportExtension.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Windows 11 Support in macOS Virtualization Framework
here is the bug number FB17582343
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Trackpad Right-Click (Two-Finger Tap) Support in Linux Guests – macOS Virtualization Framework
With Virtualization framework, the Mac uses the system gestures and pass the semantic to the guest Linux. For example, if configured as such, the two-fingers tap on the Mac would become a right-mouse click in Linux. Thank you for the reply. This does not work. I have the two finger tap enabled in the host but in linux guest it is not working. even ctrl + click is also not working for right click. I have tested this in debian and ubuntu. Not sure how to get right click work on linux guests
Replies
Boosts
Views
Activity
May ’25
Reply to Windows 11 Support in macOS Virtualization Framework
thnaks. I have a filed a new feature request.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Entitlements for VMWare et al access to access USB devices
The way to capture USB devices is on macOS is with IOUSBHostDevice passing the IOUSBHostObjectInitOptionsDeviceCapture option. Note that this requires the "com.apple.vm.device-access" restricted entitlement. How can we use this with macOS Virutlaization framework to get usb passtrhough done in macOS.
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Host-Only Networking and Port Forwarding Support in macOS Virtualization Framework
Thanks for the heads up. i will create a feature request. This is not just to get a channel between host and guest. This is for creating isolated host only network with guest and also a port forward from host to guest. i am trying to add these features to my virtual machine manager application. I dont have expertise in creating user space networking.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Host-Only Networking and Port Forwarding Support in macOS Virtualization Framework
Thank you for the reply. it seems to be that this is a bit complex task for a novice. can you please guid me on where to look for some samples on how to achive this using VZFileHandleNetworkDeviceAttachment
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to Show main window of SwiftUI app on macOS Sequoia after auto start
I am also having the problem. as a workaround if i trigger this func func triggerNewWindowMenuItem() { guard let mainMenu = NSApp.mainMenu else { return } // Locate the "File" menu if let fileMenuItem = mainMenu.items.first(where: { $0.title == "File" }), let fileSubmenu = fileMenuItem.submenu { // Locate the "New Window" item by title if let newWindowMenuItem = fileSubmenu.items.first(where: { $0.title == "New Window" }), let action = newWindowMenuItem.action { // Trigger its action NSApp.sendAction(action, to: newWindowMenuItem.target, from: nil) } } } func applicationDidFinishLaunching(_ notification: Notification) { if NSApp.windows.isEmpty { self.triggerNewWindowMenuItem() } It just a workaround. hope apple comes up with a proper fix for this.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Apr ’25
Reply to Resize disk image with hdiutil in sandbox environment
Here is the bug report number FB17262771
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Resize disk image with hdiutil in sandbox environment
Hmmm, and that works? Yes it works. there are some blocks like relocating the recovery partition to end( that can be done) and after that using disk utility we can resize main partition. but the hdiutil snadbox limitation makes not possible to do with appstore app. may be ,i need to release a separate tool for this without app sandbox to get it done.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Should i set window.isReleasedWhenClosed to true or leave it to default?
i moved setting window.isReleasedWhenClosed true to OnDisappear and the problems is solved and NSApplication.shared.windows does not retain any windows that are closed. thanks
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Resize disk image with hdiutil in sandbox environment
Is your app sandboxed because you plan to ship in the Mac App Store? Or just because it’s the right thing to do? I have the only option to distibute it to appstore because i cant manage the payment details outside of the appstore because it is very small business. How does this disk image fit into your virtualisation product? Specifically, what overall format is it? And what file system do you have on it? And how are you attaching it to your VM? And is your VM focused on macOS? Or Linux? Or both? The disk image format is img i attach it as a virtio blcok device as metnioned. i just followed this article Creating mac os virtual machine for creating and attaching to the virtual machine. The vm is focused on both linux and macOS. the files system in mac os apfs and in linux it is ext4. What are the other options i have got. By the way this is the app VirtualProg i have got in the appstore. Resizing the hard disk image within the app will add value to the product. that is i am here. thanks
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’25