first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
-3
View File
@@ -1,3 +0,0 @@
#import <AppKit/AppKit.h>
NSString *get_default_app_bundle_for_file(id);
-15
View File
@@ -1,15 +0,0 @@
#import <AppKit/AppKit.h>
NSString *get_default_app_bundle_for_file(NSString *file_path) {
NSURL *fileUrl = [NSURL fileURLWithPath:file_path];
NSURL *appUrl = [[NSWorkspace sharedWorkspace] URLForApplicationToOpenURL:fileUrl];
if (!appUrl) {
return nil;
}
NSBundle *appBundle = [NSBundle bundleWithURL:appUrl];
if (!appBundle) {
return nil;
}
return [appBundle bundleIdentifier];
}