pyobjc-framework-FileProvider 10.1__tar.gz → 11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyobjc-framework-FileProvider might be problematic. Click here for more details.
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Lib/FileProvider/__init__.py +3 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Lib/FileProvider/_metadata.py +120 -2
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Lib/pyobjc_framework_FileProvider.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Lib/pyobjc_framework_FileProvider.egg-info/SOURCES.txt +6 -6
- pyobjc_framework_fileprovider-11.0/Lib/pyobjc_framework_FileProvider.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_fileprovider-11.0/Lib/pyobjc_framework_FileProvider.egg-info/requires.txt +2 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/License.txt +1 -1
- pyobjc_framework_fileprovider-11.0/Modules/_FileProvider.m +67 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Modules/_FileProvider_protocols.m +6 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileproviderdomain.py +4 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileprovidererror.py +8 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileproviderextension.py +17 -1
- pyobjc_framework_fileprovider-11.0/PyObjCTest/test_nsfileproviderknownfolders.py +40 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileprovidermanager.py +35 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileproviderreplicatedextension.py +1 -1
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/metadata/FileProvider.fwinfo +10 -0
- pyobjc-framework-FileProvider-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_fileprovider-11.0/metadata/raw/arm64-14.5.fwinfo +5 -2
- pyobjc_framework_fileprovider-11.0/metadata/raw/arm64-15.0.fwinfo +5570 -0
- pyobjc-framework-FileProvider-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_fileprovider-11.0/metadata/raw/x86_64-14.5.fwinfo +5 -2
- pyobjc_framework_fileprovider-11.0/metadata/raw/x86_64-15.0.fwinfo +5570 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/setup.py +2 -2
- pyobjc-framework-FileProvider-10.1/Lib/pyobjc_framework_FileProvider.egg-info/requires.txt +0 -2
- pyobjc-framework-FileProvider-10.1/Modules/_FileProvider.m +0 -33
- pyobjc-framework-FileProvider-10.1/metadata/raw/arm64-12.0.fwinfo +0 -4649
- pyobjc-framework-FileProvider-10.1/metadata/raw/arm64-13.0.fwinfo +0 -5030
- pyobjc-framework-FileProvider-10.1/metadata/raw/x86_64-12.0.fwinfo +0 -4649
- pyobjc-framework-FileProvider-10.1/metadata/raw/x86_64-13.0.fwinfo +0 -5030
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Lib/pyobjc_framework_FileProvider.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Lib/pyobjc_framework_FileProvider.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Lib/pyobjc_framework_FileProvider.egg-info/top_level.txt +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_fileprovider.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileprovideractions.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileproviderenumerating.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileprovideritem.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileprovideritemdecoration.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileproviderrequest.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileproviderservice.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileprovidertesting.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/PyObjCTest/test_nsfileproviderthumbnailing.py +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/metadata/raw/arm64-13.3.fwinfo +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/metadata/raw/x86_64-13.3.fwinfo +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Wed Jun 19 17:01:54 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -40,7 +40,7 @@ misc.update(
|
|
|
40
40
|
}
|
|
41
41
|
)
|
|
42
42
|
constants = """$NSFileProviderDomainDidChange$NSFileProviderErrorCausedByErrorsKey$NSFileProviderErrorCollidingItemKey$NSFileProviderErrorDomain$NSFileProviderErrorItemKey$NSFileProviderErrorNonExistentItemIdentifierKey$NSFileProviderFavoriteRankUnranked@Q$NSFileProviderInitialPageSortedByDate$NSFileProviderInitialPageSortedByName$NSFileProviderMaterializedSetDidChange$NSFileProviderPendingSetDidChange$NSFileProviderRootContainerItemIdentifier$NSFileProviderTrashContainerItemIdentifier$NSFileProviderWorkingSetContainerItemIdentifier$"""
|
|
43
|
-
enums = """$NSFileProviderContentPolicyDownloadEagerlyAndKeepDownloaded@3$NSFileProviderContentPolicyDownloadLazily@1$NSFileProviderContentPolicyDownloadLazilyAndEvictOnRemoteUpdate@2$NSFileProviderContentPolicyInherited@0$NSFileProviderCreateItemDeletionConflicted@2$NSFileProviderCreateItemMayAlreadyExist@1$NSFileProviderDeleteItemRecursive@1$NSFileProviderDomainRemovalModePreserveDirtyUserData@1$NSFileProviderDomainRemovalModePreserveDownloadedUserData@2$NSFileProviderDomainRemovalModeRemoveAll@0$NSFileProviderDomainTestingModeAlwaysEnabled@1$NSFileProviderDomainTestingModeInteractive@2$NSFileProviderErrorCannotSynchronize@-2005$NSFileProviderErrorDeletionRejected@-1006$NSFileProviderErrorDirectoryNotEmpty@-1007$NSFileProviderErrorDomainDisabled@-2011$NSFileProviderErrorExcludedFromSync@-2010$NSFileProviderErrorFilenameCollision@-1001$NSFileProviderErrorInsufficientQuota@-1003$NSFileProviderErrorNewerExtensionVersionFound@-2004$NSFileProviderErrorNoSuchItem@-1005$NSFileProviderErrorNonEvictable@-2008$NSFileProviderErrorNonEvictableChildren@-2006$NSFileProviderErrorNotAuthenticated@-1000$NSFileProviderErrorOlderExtensionVersionRunning@-2003$NSFileProviderErrorPageExpired@-1002$NSFileProviderErrorProviderNotFound@-2001$NSFileProviderErrorProviderTranslocated@-2002$NSFileProviderErrorServerUnreachable@-1004$NSFileProviderErrorSyncAnchorExpired@-1002$NSFileProviderErrorUnsyncedEdits@-2007$NSFileProviderErrorVersionNoLongerAvailable@-2009$NSFileProviderFetchContentsOptionsStrictVersioning@1$NSFileProviderFileSystemHidden@8$NSFileProviderFileSystemPathExtensionHidden@16$NSFileProviderFileSystemUserExecutable@1$NSFileProviderFileSystemUserReadable@2$NSFileProviderFileSystemUserWritable@4$NSFileProviderItemCapabilitiesAllowsAddingSubItems@2$NSFileProviderItemCapabilitiesAllowsAll@63$NSFileProviderItemCapabilitiesAllowsContentEnumerating@1$NSFileProviderItemCapabilitiesAllowsDeleting@32$NSFileProviderItemCapabilitiesAllowsEvicting@64$NSFileProviderItemCapabilitiesAllowsExcludingFromSync@128$NSFileProviderItemCapabilitiesAllowsReading@1$NSFileProviderItemCapabilitiesAllowsRenaming@8$NSFileProviderItemCapabilitiesAllowsReparenting@4$NSFileProviderItemCapabilitiesAllowsTrashing@16$NSFileProviderItemCapabilitiesAllowsWriting@2$NSFileProviderItemContentModificationDate@128$NSFileProviderItemContents@1$NSFileProviderItemCreationDate@64$NSFileProviderItemExtendedAttributes@512$NSFileProviderItemFavoriteRank@32$NSFileProviderItemFileSystemFlags@256$NSFileProviderItemFilename@2$NSFileProviderItemLastUsedDate@8$NSFileProviderItemParentItemIdentifier@4$NSFileProviderItemTagData@16$NSFileProviderItemTypeAndCreator@1024$NSFileProviderManagerDisconnectionOptionsTemporary@1$NSFileProviderMaterializationFlagsKnownSparseRanges@1$NSFileProviderModifyItemMayAlreadyExist@1$NSFileProviderTestingOperationSideDisk@0$NSFileProviderTestingOperationSideFileProvider@1$NSFileProviderTestingOperationTypeChildrenEnumeration@6$NSFileProviderTestingOperationTypeCollisionResolution@7$NSFileProviderTestingOperationTypeContentFetch@5$NSFileProviderTestingOperationTypeCreation@2$NSFileProviderTestingOperationTypeDeletion@4$NSFileProviderTestingOperationTypeIngestion@0$NSFileProviderTestingOperationTypeLookup@1$NSFileProviderTestingOperationTypeModification@3$"""
|
|
43
|
+
enums = """$NSFileProviderContentPolicyDownloadEagerlyAndKeepDownloaded@3$NSFileProviderContentPolicyDownloadLazily@1$NSFileProviderContentPolicyDownloadLazilyAndEvictOnRemoteUpdate@2$NSFileProviderContentPolicyInherited@0$NSFileProviderCreateItemDeletionConflicted@2$NSFileProviderCreateItemMayAlreadyExist@1$NSFileProviderDeleteItemRecursive@1$NSFileProviderDesktop@1$NSFileProviderDocuments@2$NSFileProviderDomainRemovalModePreserveDirtyUserData@1$NSFileProviderDomainRemovalModePreserveDownloadedUserData@2$NSFileProviderDomainRemovalModeRemoveAll@0$NSFileProviderDomainTestingModeAlwaysEnabled@1$NSFileProviderDomainTestingModeInteractive@2$NSFileProviderErrorApplicationExtensionNotFound@-2014$NSFileProviderErrorCannotSynchronize@-2005$NSFileProviderErrorDeletionRejected@-1006$NSFileProviderErrorDirectoryNotEmpty@-1007$NSFileProviderErrorDomainDisabled@-2011$NSFileProviderErrorExcludedFromSync@-2010$NSFileProviderErrorFilenameCollision@-1001$NSFileProviderErrorInsufficientQuota@-1003$NSFileProviderErrorNewerExtensionVersionFound@-2004$NSFileProviderErrorNoSuchItem@-1005$NSFileProviderErrorNonEvictable@-2008$NSFileProviderErrorNonEvictableChildren@-2006$NSFileProviderErrorNotAuthenticated@-1000$NSFileProviderErrorOlderExtensionVersionRunning@-2003$NSFileProviderErrorPageExpired@-1002$NSFileProviderErrorProviderDomainNotFound@-2013$NSFileProviderErrorProviderDomainTemporarilyUnavailable@-2012$NSFileProviderErrorProviderNotFound@-2001$NSFileProviderErrorProviderTranslocated@-2002$NSFileProviderErrorServerUnreachable@-1004$NSFileProviderErrorSyncAnchorExpired@-1002$NSFileProviderErrorUnsyncedEdits@-2007$NSFileProviderErrorVersionNoLongerAvailable@-2009$NSFileProviderFetchContentsOptionsStrictVersioning@1$NSFileProviderFileSystemHidden@8$NSFileProviderFileSystemPathExtensionHidden@16$NSFileProviderFileSystemUserExecutable@1$NSFileProviderFileSystemUserReadable@2$NSFileProviderFileSystemUserWritable@4$NSFileProviderItemCapabilitiesAllowsAddingSubItems@2$NSFileProviderItemCapabilitiesAllowsAll@63$NSFileProviderItemCapabilitiesAllowsContentEnumerating@1$NSFileProviderItemCapabilitiesAllowsDeleting@32$NSFileProviderItemCapabilitiesAllowsEvicting@64$NSFileProviderItemCapabilitiesAllowsExcludingFromSync@128$NSFileProviderItemCapabilitiesAllowsReading@1$NSFileProviderItemCapabilitiesAllowsRenaming@8$NSFileProviderItemCapabilitiesAllowsReparenting@4$NSFileProviderItemCapabilitiesAllowsTrashing@16$NSFileProviderItemCapabilitiesAllowsWriting@2$NSFileProviderItemContentModificationDate@128$NSFileProviderItemContents@1$NSFileProviderItemCreationDate@64$NSFileProviderItemExtendedAttributes@512$NSFileProviderItemFavoriteRank@32$NSFileProviderItemFileSystemFlags@256$NSFileProviderItemFilename@2$NSFileProviderItemLastUsedDate@8$NSFileProviderItemParentItemIdentifier@4$NSFileProviderItemTagData@16$NSFileProviderItemTypeAndCreator@1024$NSFileProviderManagerDisconnectionOptionsTemporary@1$NSFileProviderMaterializationFlagsKnownSparseRanges@1$NSFileProviderModifyItemMayAlreadyExist@1$NSFileProviderTestingOperationSideDisk@0$NSFileProviderTestingOperationSideFileProvider@1$NSFileProviderTestingOperationTypeChildrenEnumeration@6$NSFileProviderTestingOperationTypeCollisionResolution@7$NSFileProviderTestingOperationTypeContentFetch@5$NSFileProviderTestingOperationTypeCreation@2$NSFileProviderTestingOperationTypeDeletion@4$NSFileProviderTestingOperationTypeIngestion@0$NSFileProviderTestingOperationTypeLookup@1$NSFileProviderTestingOperationTypeModification@3$NSFileProviderVolumeUnsupportedReasonNetwork@16$NSFileProviderVolumeUnsupportedReasonNonAPFS@2$NSFileProviderVolumeUnsupportedReasonNonEncrypted@4$NSFileProviderVolumeUnsupportedReasonNone@0$NSFileProviderVolumeUnsupportedReasonQuarantined@32$NSFileProviderVolumeUnsupportedReasonReadOnly@8$NSFileProviderVolumeUnsupportedReasonUnknown@1$"""
|
|
44
44
|
misc.update(
|
|
45
45
|
{
|
|
46
46
|
"NSFileProviderManagerDisconnectionOptions": NewType(
|
|
@@ -53,6 +53,7 @@ misc.update(
|
|
|
53
53
|
"NSFileProviderCreateItemOptions": NewType(
|
|
54
54
|
"NSFileProviderCreateItemOptions", int
|
|
55
55
|
),
|
|
56
|
+
"NSFileProviderKnownFolders": NewType("NSFileProviderKnownFolders", int),
|
|
56
57
|
"NSFileProviderModifyItemOptions": NewType(
|
|
57
58
|
"NSFileProviderModifyItemOptions", int
|
|
58
59
|
),
|
|
@@ -63,6 +64,9 @@ misc.update(
|
|
|
63
64
|
"NSFileProviderDomainRemovalMode": NewType(
|
|
64
65
|
"NSFileProviderDomainRemovalMode", int
|
|
65
66
|
),
|
|
67
|
+
"NSFileProviderVolumeUnsupportedReason": NewType(
|
|
68
|
+
"NSFileProviderVolumeUnsupportedReason", int
|
|
69
|
+
),
|
|
66
70
|
"NSFileProviderDeleteItemOptions": NewType(
|
|
67
71
|
"NSFileProviderDeleteItemOptions", int
|
|
68
72
|
),
|
|
@@ -505,6 +509,16 @@ try:
|
|
|
505
509
|
b"writePlaceholderAtURL:withMetadata:error:",
|
|
506
510
|
{"retval": {"type": b"Z"}, "arguments": {4: {"type_modifier": b"o"}}},
|
|
507
511
|
)
|
|
512
|
+
r(
|
|
513
|
+
b"NSFileProviderKnownFolderLocations",
|
|
514
|
+
b"setShouldCreateBinaryCompatibilitySymlink:",
|
|
515
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
516
|
+
)
|
|
517
|
+
r(
|
|
518
|
+
b"NSFileProviderKnownFolderLocations",
|
|
519
|
+
b"shouldCreateBinaryCompatibilitySymlink",
|
|
520
|
+
{"retval": {"type": b"Z"}},
|
|
521
|
+
)
|
|
508
522
|
r(
|
|
509
523
|
b"NSFileProviderManager",
|
|
510
524
|
b"addDomain:completionHandler:",
|
|
@@ -519,6 +533,32 @@ try:
|
|
|
519
533
|
}
|
|
520
534
|
},
|
|
521
535
|
)
|
|
536
|
+
r(
|
|
537
|
+
b"NSFileProviderManager",
|
|
538
|
+
b"checkDomainsCanBeStored:onVolumeAtURL:unsupportedReason:error:",
|
|
539
|
+
{
|
|
540
|
+
"retval": {"type": "Z"},
|
|
541
|
+
"arguments": {
|
|
542
|
+
2: {"type": "^Z", "type_modifier": b"o"},
|
|
543
|
+
4: {"type_modifier": b"o"},
|
|
544
|
+
5: {"type_modifier": b"o"},
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
)
|
|
548
|
+
r(
|
|
549
|
+
b"NSFileProviderManager",
|
|
550
|
+
b"claimKnownFolders:localizedReason:completionHandler:",
|
|
551
|
+
{
|
|
552
|
+
"arguments": {
|
|
553
|
+
4: {
|
|
554
|
+
"callable": {
|
|
555
|
+
"retval": {"type": b"v"},
|
|
556
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
)
|
|
522
562
|
r(
|
|
523
563
|
b"NSFileProviderManager",
|
|
524
564
|
b"disconnectWithReason:options:completionHandler:",
|
|
@@ -699,6 +739,20 @@ try:
|
|
|
699
739
|
}
|
|
700
740
|
},
|
|
701
741
|
)
|
|
742
|
+
r(
|
|
743
|
+
b"NSFileProviderManager",
|
|
744
|
+
b"releaseKnownFolders:localizedReason:completionHandler:",
|
|
745
|
+
{
|
|
746
|
+
"arguments": {
|
|
747
|
+
4: {
|
|
748
|
+
"callable": {
|
|
749
|
+
"retval": {"type": b"v"},
|
|
750
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
)
|
|
702
756
|
r(
|
|
703
757
|
b"NSFileProviderManager",
|
|
704
758
|
b"removeAllDomainsWithCompletionHandler:",
|
|
@@ -820,6 +874,11 @@ try:
|
|
|
820
874
|
}
|
|
821
875
|
},
|
|
822
876
|
)
|
|
877
|
+
r(
|
|
878
|
+
b"NSFileProviderManager",
|
|
879
|
+
b"stateDirectoryURLWithError:",
|
|
880
|
+
{"arguments": {2: {"type_modifier": b"o"}}},
|
|
881
|
+
)
|
|
823
882
|
r(
|
|
824
883
|
b"NSFileProviderManager",
|
|
825
884
|
b"temporaryDirectoryURLWithError:",
|
|
@@ -1171,6 +1230,28 @@ try:
|
|
|
1171
1230
|
b"finishEnumeratingWithError:",
|
|
1172
1231
|
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
1173
1232
|
)
|
|
1233
|
+
r(
|
|
1234
|
+
b"NSObject",
|
|
1235
|
+
b"getKnownFolderLocations:completionHandler:",
|
|
1236
|
+
{
|
|
1237
|
+
"required": True,
|
|
1238
|
+
"retval": {"type": b"v"},
|
|
1239
|
+
"arguments": {
|
|
1240
|
+
2: {"type": b"Q"},
|
|
1241
|
+
3: {
|
|
1242
|
+
"callable": {
|
|
1243
|
+
"retval": {"type": b"v"},
|
|
1244
|
+
"arguments": {
|
|
1245
|
+
0: {"type": b"^v"},
|
|
1246
|
+
1: {"type": b"@"},
|
|
1247
|
+
2: {"type": b"@"},
|
|
1248
|
+
},
|
|
1249
|
+
},
|
|
1250
|
+
"type": b"@?",
|
|
1251
|
+
},
|
|
1252
|
+
},
|
|
1253
|
+
},
|
|
1254
|
+
)
|
|
1174
1255
|
r(
|
|
1175
1256
|
b"NSObject",
|
|
1176
1257
|
b"importDidFinishWithCompletionHandler:",
|
|
@@ -1371,6 +1452,23 @@ try:
|
|
|
1371
1452
|
"arguments": {2: {"type": b"Z"}, 3: {"type": b"@"}},
|
|
1372
1453
|
},
|
|
1373
1454
|
)
|
|
1455
|
+
r(
|
|
1456
|
+
b"NSObject",
|
|
1457
|
+
b"shouldConnectExternalDomainWithCompletionHandler:",
|
|
1458
|
+
{
|
|
1459
|
+
"required": True,
|
|
1460
|
+
"retval": {"type": b"v"},
|
|
1461
|
+
"arguments": {
|
|
1462
|
+
2: {
|
|
1463
|
+
"callable": {
|
|
1464
|
+
"retval": {"type": b"v"},
|
|
1465
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
1466
|
+
},
|
|
1467
|
+
"type": b"@?",
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
},
|
|
1471
|
+
)
|
|
1374
1472
|
r(b"NSObject", b"side", {"required": True, "retval": {"type": "Q"}})
|
|
1375
1473
|
r(b"NSObject", b"sourceItem", {"required": True, "retval": {"type": b"@"}})
|
|
1376
1474
|
r(
|
|
@@ -1643,6 +1741,26 @@ try:
|
|
|
1643
1741
|
)
|
|
1644
1742
|
finally:
|
|
1645
1743
|
objc._updatingMetadata(False)
|
|
1744
|
+
|
|
1745
|
+
objc.registerNewKeywordsFromSelector(
|
|
1746
|
+
"NSFileProviderDomain", b"initWithDisplayName:userInfo:volumeURL:"
|
|
1747
|
+
)
|
|
1748
|
+
objc.registerNewKeywordsFromSelector(
|
|
1749
|
+
"NSFileProviderDomain", b"initWithIdentifier:displayName:"
|
|
1750
|
+
)
|
|
1751
|
+
objc.registerNewKeywordsFromSelector(
|
|
1752
|
+
"NSFileProviderDomain",
|
|
1753
|
+
b"initWithIdentifier:displayName:pathRelativeToDocumentStorage:",
|
|
1754
|
+
)
|
|
1755
|
+
objc.registerNewKeywordsFromSelector(
|
|
1756
|
+
"NSFileProviderItemVersion", b"initWithContentVersion:metadataVersion:"
|
|
1757
|
+
)
|
|
1758
|
+
objc.registerNewKeywordsFromSelector(
|
|
1759
|
+
"NSFileProviderKnownFolderLocation", b"initWithExistingItemIdentifier:"
|
|
1760
|
+
)
|
|
1761
|
+
objc.registerNewKeywordsFromSelector(
|
|
1762
|
+
"NSFileProviderKnownFolderLocation", b"initWithParentItemIdentifier:filename:"
|
|
1763
|
+
)
|
|
1646
1764
|
expressions = {}
|
|
1647
1765
|
|
|
1648
1766
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-FileProvider
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework FileProvider on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
36
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
37
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_FileProvider.egg-info/PKG-INFO
|
|
|
9
9
|
Lib/pyobjc_framework_FileProvider.egg-info/SOURCES.txt
|
|
10
10
|
Lib/pyobjc_framework_FileProvider.egg-info/dependency_links.txt
|
|
11
11
|
Lib/pyobjc_framework_FileProvider.egg-info/not-zip-safe
|
|
12
|
+
Lib/pyobjc_framework_FileProvider.egg-info/pyobjc-build-info.txt
|
|
12
13
|
Lib/pyobjc_framework_FileProvider.egg-info/requires.txt
|
|
13
14
|
Lib/pyobjc_framework_FileProvider.egg-info/top_level.txt
|
|
14
15
|
Modules/_FileProvider.m
|
|
@@ -24,6 +25,7 @@ PyObjCTest/test_nsfileprovidererror.py
|
|
|
24
25
|
PyObjCTest/test_nsfileproviderextension.py
|
|
25
26
|
PyObjCTest/test_nsfileprovideritem.py
|
|
26
27
|
PyObjCTest/test_nsfileprovideritemdecoration.py
|
|
28
|
+
PyObjCTest/test_nsfileproviderknownfolders.py
|
|
27
29
|
PyObjCTest/test_nsfileprovidermanager.py
|
|
28
30
|
PyObjCTest/test_nsfileproviderreplicatedextension.py
|
|
29
31
|
PyObjCTest/test_nsfileproviderrequest.py
|
|
@@ -32,14 +34,12 @@ PyObjCTest/test_nsfileprovidertesting.py
|
|
|
32
34
|
PyObjCTest/test_nsfileproviderthumbnailing.py
|
|
33
35
|
metadata/FileProvider.fwinfo
|
|
34
36
|
metadata/metadata.ini
|
|
35
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
36
37
|
metadata/raw/arm64-12.3.fwinfo
|
|
37
|
-
metadata/raw/arm64-13.0.fwinfo
|
|
38
38
|
metadata/raw/arm64-13.3.fwinfo
|
|
39
|
-
metadata/raw/arm64-14.
|
|
39
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
40
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
40
41
|
metadata/raw/x86_64-10.16.fwinfo
|
|
41
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
42
42
|
metadata/raw/x86_64-12.3.fwinfo
|
|
43
|
-
metadata/raw/x86_64-13.0.fwinfo
|
|
44
43
|
metadata/raw/x86_64-13.3.fwinfo
|
|
45
|
-
metadata/raw/x86_64-14.
|
|
44
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
45
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(This is the MIT license, note that libffi-src is a separate product with its own license)
|
|
2
2
|
|
|
3
3
|
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
|
|
4
|
-
Copyright 2003-
|
|
4
|
+
Copyright 2003-2024 - Ronald Oussoren
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
7
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#import <FileProvider/FileProvider.h>
|
|
6
|
+
#import <Foundation/Foundation.h>
|
|
7
|
+
|
|
8
|
+
/* We include the source code here instead of
|
|
9
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
10
|
+
*/
|
|
11
|
+
#include "_FileProvider_protocols.m"
|
|
12
|
+
|
|
13
|
+
static PyMethodDef mod_methods[] = {
|
|
14
|
+
{0, 0, 0, 0} /* sentinel */
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
static int mod_exec_module(PyObject* m)
|
|
18
|
+
{
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
23
|
+
{
|
|
24
|
+
.slot = Py_mod_exec,
|
|
25
|
+
.value = (void*)mod_exec_module
|
|
26
|
+
},
|
|
27
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
28
|
+
{
|
|
29
|
+
/* This extension does not use the CPython API other than initializing
|
|
30
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
31
|
+
* GILs
|
|
32
|
+
*/
|
|
33
|
+
.slot = Py_mod_multiple_interpreters,
|
|
34
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
35
|
+
},
|
|
36
|
+
#endif
|
|
37
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
38
|
+
{
|
|
39
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
40
|
+
.slot = Py_mod_gil,
|
|
41
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
42
|
+
},
|
|
43
|
+
#endif
|
|
44
|
+
{ /* Sentinel */
|
|
45
|
+
.slot = 0,
|
|
46
|
+
.value = 0
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
static struct PyModuleDef mod_module = {
|
|
51
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
52
|
+
.m_name = "_FileProvider",
|
|
53
|
+
.m_doc = NULL,
|
|
54
|
+
.m_size = 0,
|
|
55
|
+
.m_methods = mod_methods,
|
|
56
|
+
.m_slots = mod_slots,
|
|
57
|
+
.m_traverse = NULL,
|
|
58
|
+
.m_clear = NULL,
|
|
59
|
+
.m_free = NULL,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
PyObject* PyInit__FileProvider(void);
|
|
63
|
+
|
|
64
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__FileProvider(void)
|
|
65
|
+
{
|
|
66
|
+
return PyModuleDef_Init(&mod_module);
|
|
67
|
+
}
|
|
@@ -39,4 +39,10 @@ static void __attribute__((__used__)) use_protocols(void)
|
|
|
39
39
|
p = PyObjC_IdToPython(@protocol(NSFileProviderPartialContentFetching));
|
|
40
40
|
Py_XDECREF(p);
|
|
41
41
|
#endif
|
|
42
|
+
#if PyObjC_BUILD_RELEASE >= 1500
|
|
43
|
+
p = PyObjC_IdToPython(@protocol(NSFileProviderKnownFolderSupporting));
|
|
44
|
+
Py_XDECREF(p);
|
|
45
|
+
p = PyObjC_IdToPython(@protocol(NSFileProviderExternalVolumeHandling));
|
|
46
|
+
Py_XDECREF(p);
|
|
47
|
+
#endif
|
|
42
48
|
}
|
{pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Modules/pyobjc-api.h
RENAMED
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
{pyobjc-framework-FileProvider-10.1 → pyobjc_framework_fileprovider-11.0}/Modules/pyobjc-compat.h
RENAMED
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-FileProvider
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework FileProvider on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
Wrappers for the "FileProvider" framework on macOS.
|
|
@@ -17,6 +17,10 @@ class TestNSFileProviderDomain(TestCase):
|
|
|
17
17
|
FileProvider.NSFileProviderDomainTestingModeInteractive, 1 << 1
|
|
18
18
|
)
|
|
19
19
|
|
|
20
|
+
self.assertIsEnumType(FileProvider.NSFileProviderKnownFolders)
|
|
21
|
+
self.assertEqual(FileProvider.NSFileProviderDesktop, 1 << 0)
|
|
22
|
+
self.assertEqual(FileProvider.NSFileProviderDocuments, 1 << 1)
|
|
23
|
+
|
|
20
24
|
@min_os_level("11.0")
|
|
21
25
|
def test_methods11_0(self):
|
|
22
26
|
self.assertResultIsBOOL(FileProvider.NSFileProviderDomain.isDisconnected)
|
|
@@ -32,3 +32,11 @@ class TestNSFileProviderError(TestCase):
|
|
|
32
32
|
FileProvider.NSFileProviderErrorVersionNoLongerAvailable, -2009
|
|
33
33
|
)
|
|
34
34
|
self.assertEqual(FileProvider.NSFileProviderErrorExcludedFromSync, -2010)
|
|
35
|
+
self.assertEqual(FileProvider.NSFileProviderErrorDomainDisabled, -2011)
|
|
36
|
+
self.assertEqual(
|
|
37
|
+
FileProvider.NSFileProviderErrorProviderDomainTemporarilyUnavailable, -2012
|
|
38
|
+
)
|
|
39
|
+
self.assertEqual(FileProvider.NSFileProviderErrorProviderDomainNotFound, -2013)
|
|
40
|
+
self.assertEqual(
|
|
41
|
+
FileProvider.NSFileProviderErrorApplicationExtensionNotFound, -2014
|
|
42
|
+
)
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import FileProvider
|
|
2
|
-
from PyObjCTools.TestSupport import TestCase
|
|
2
|
+
from PyObjCTools.TestSupport import TestCase, min_sdk_level
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class TestNSFileProviderExtensionHelper(FileProvider.NSObject):
|
|
6
|
+
def shouldConnectExternalDomainWithCompletionHandler_(self, a):
|
|
7
|
+
pass
|
|
3
8
|
|
|
4
9
|
|
|
5
10
|
class TestNSFileProviderExtension(TestCase):
|
|
@@ -15,6 +20,17 @@ class TestNSFileProviderExtension(TestCase):
|
|
|
15
20
|
self.assertEqual(FileProvider.NSFileProviderItemFileSystemFlags, 1 << 8)
|
|
16
21
|
self.assertEqual(FileProvider.NSFileProviderItemExtendedAttributes, 1 << 9)
|
|
17
22
|
|
|
23
|
+
@min_sdk_level("15.0")
|
|
24
|
+
def test_protocols(self):
|
|
25
|
+
self.assertProtocolExists("NSFileProviderExternalVolumeHandling")
|
|
26
|
+
|
|
27
|
+
def test_protocol_methods(self):
|
|
28
|
+
self.assertArgIsBlock(
|
|
29
|
+
TestNSFileProviderExtensionHelper.shouldConnectExternalDomainWithCompletionHandler_,
|
|
30
|
+
0,
|
|
31
|
+
b"v@",
|
|
32
|
+
)
|
|
33
|
+
|
|
18
34
|
def test_methods(self):
|
|
19
35
|
self.assertArgIsOut(
|
|
20
36
|
FileProvider.NSFileProviderExtension.itemForIdentifier_error_, 1
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import FileProvider
|
|
2
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class TestNSFileProviderKnownFoldersHelper(FileProvider.NSObject):
|
|
6
|
+
def getKnownFolderLocations_completionHandler_(self, a, b):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TestNSFileProviderKnownFolders(TestCase):
|
|
11
|
+
@min_os_level("15.0")
|
|
12
|
+
def test_methods15_0(self):
|
|
13
|
+
self.assertResultIsBOOL(
|
|
14
|
+
FileProvider.NSFileProviderKnownFolderLocations.shouldCreateBinaryCompatibilitySymlink
|
|
15
|
+
)
|
|
16
|
+
self.assertArgIsBOOL(
|
|
17
|
+
FileProvider.NSFileProviderKnownFolderLocations.setShouldCreateBinaryCompatibilitySymlink_,
|
|
18
|
+
0,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
self.assertArgIsBlock(
|
|
22
|
+
FileProvider.NSFileProviderManager.claimKnownFolders_localizedReason_completionHandler_,
|
|
23
|
+
2,
|
|
24
|
+
b"v@",
|
|
25
|
+
)
|
|
26
|
+
self.assertArgIsBlock(
|
|
27
|
+
FileProvider.NSFileProviderManager.releaseKnownFolders_localizedReason_completionHandler_,
|
|
28
|
+
2,
|
|
29
|
+
b"v@",
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
def test_protocols(self):
|
|
33
|
+
self.assertProtocolExists("NSFileProviderKnownFolderSupporting")
|
|
34
|
+
|
|
35
|
+
def test_protocol_methods(self):
|
|
36
|
+
self.assertArgIsBlock(
|
|
37
|
+
TestNSFileProviderKnownFoldersHelper.getKnownFolderLocations_completionHandler_,
|
|
38
|
+
1,
|
|
39
|
+
b"v@@",
|
|
40
|
+
)
|