This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CheckOptions: | |
- key: readability-identifier-naming.ClassCase | |
value: CamelCase | |
- key: readability-identifier-naming.ClassMemberCase | |
value: lower_case | |
- key: readability-identifier-naming.ConstexprVariableCase | |
value: CamelCase | |
- key: readability-identifier-naming.ConstexprVariablePrefix | |
value: k | |
- key: readability-identifier-naming.EnumCase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Foundation import NSBundle | |
# Load the framework bundle by its identifier | |
Metadata_bundle = NSBundle.bundleWithIdentifier_("com.apple.Metadata") | |
# Can also use: bundleWithPath or bundleWithURL | |
# Load the variable aka constant from the framework into globals | |
# This says to load whatever "kMDSPreferencesName" is and the type should be "an NSObject" aka "figure it out" | |
# which ends up giving us a NSString which pyObjC bridges to a python string nicely |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <iterator> | |
#include <assert.h> | |
typedef std::chrono::high_resolution_clock Clock; | |
template<typename T> |