Package com.intellij.ui.mac.foundation
Class Foundation
java.lang.Object
com.intellij.ui.mac.foundation.Foundation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanaddMethodByID(ID cls, Pointer selectorName, ID impl, String types) static booleanaddProtocol(ID aClass, ID protocol) static IDallocateObjcClassPair(ID superCls, String name) static voidstatic voidstatic IDcgWindowListCreateImage(Foundation.NSRect screenBounds, int windowOption, ID windowID, int imageOption) static IDclass_replaceMethod(ID cls, Pointer selector, Callback impl, String types) static IDcreateDict(String[] keys, Object[] values) static Pointerstatic voidexecuteOnMainThread(Runnable runnable, boolean withAutoreleasePool, boolean waitUntilDone) static IDstatic Stringstatic Pointerstatic longgetEncodingCode(String encodingName) static StringgetEncodingName(long nsStringEncoding) static IDgetMetaClass(String className) static IDgetObjcClass(String className) Get the ID of the NSClass with classNamestatic IDgetProtocol(String name) static voidinit()static IDstatic IDstatic IDstatic booleanisClassRespondsToSelector(ID cls, Pointer selectorName) static booleanstatic booleanisMetaClass(ID cls) static booleanisPackageAtPath(File file) static booleanisPackageAtPath(String path) static IDstatic voidregisterObjcClassPair(ID cls) static StringstringFromSelector(Pointer selector) static StringtoStringViaUTF8(ID cfString)
-
Method Details
-
init
public static void init() -
getObjcClass
Get the ID of the NSClass with className -
getProtocol
-
createSelector
-
invoke
-
invoke
-
invoke
-
allocateObjcClassPair
-
registerObjcClassPair
-
isClassRespondsToSelector
-
addMethod
- Parameters:
cls- The class to which to add a method.selectorName- A selector that specifies the name of the method being added.impl- A function which is the implementation of the new method. The function must take at least two arguments-self and _cmd.types- An array of characters that describe the types of the arguments to the method. See- Returns:
- true if the method was added successfully, otherwise false (for example, the class already contains a method implementation with that name).
-
addProtocol
-
addMethodByID
-
isMetaClass
-
stringFromSelector
-
getClass
-
fullUserName
-
class_replaceMethod
-
getMetaClass
-
isPackageAtPath
-
isPackageAtPath
-
nsString
-
toStringViaUTF8
-
getEncodingName
-
getEncodingCode
-
cfRetain
-
cgWindowListCreateImage
public static ID cgWindowListCreateImage(Foundation.NSRect screenBounds, int windowOption, ID windowID, int imageOption) -
cfRelease
-
isMainThread
public static boolean isMainThread() -
executeOnMainThread
public static void executeOnMainThread(Runnable runnable, boolean withAutoreleasePool, boolean waitUntilDone) -
fillArray
-
createDict
-