|
isNone(obj)
Return True if obj is nil, None, NSNone , etc. |
|
|
|
nsArray2listuple(ns,
ctype=<class 'ctypes.c_void_p'>)
Create a Python list or tuple from an
NS[Mutable]Array . |
|
|
|
nsBoolean2bool(ns,
dflt=missing())
Create a Python bool from an NSBool[ean] . |
|
|
|
nsBundleRename(nsTitle,
match=' Python ' )
Change the bundle title if the current title matches. |
|
|
|
|
|
|
|
nsDictionary2dict(ns,
ctype_keys=<class 'ctypes.c_void_p'>,
ctype_vals=<class 'ctypes.c_void_p'>)
Create a Python dict from an
NS[Mutable]Dictionary . |
|
|
|
nsIter2(ns,
reverse=False)
Iterate over an NS.. objects's (reverse) enumerator. |
|
|
|
nsLog(fmt,
*args)
Formatted write to the console. |
|
|
|
nsNull2none(ns)
Return Python None for an NS/CFNull or
nil . |
|
|
|
nsNumber2num(ns,
dflt=missing())
Create a Python Decimal , int or
float from an NSNumber . |
|
|
|
nsOf(inst)
Return the .NS object of a Python wrapper or Type
instance. |
|
|
|
nsSet2set(ns,
ctype=<class 'ctypes.c_void_p'>)
Create a Python set or frozenset from an
NS[Mutable]Set . |
|
|
|
nsString2str(ns,
dflt=None)
Create a Python str or unicode from an
NS[Mutable]Str[ing] . |
|
|
|
ns2py(ns,
dflt=None)
Convert (an instance of) an ObjC class to an instance of the
equivalent Python standard type or wrapper and value. |
|
|
|
ns2Type(ns)
Convert an NS/Instance object to an instance of the
corresponding Python Type and value. |
|
|
|
NSApplication = ObjCClass('NSApplication')
|
|
NSArray = ObjCClass('NSArray')
|
|
NSAutoreleasePool = ObjCClass('NSAutoreleasePool')
|
|
NSBezierPath = ObjCClass('NSBezierPath')
|
|
NSBundle = ObjCClass('NSBundle')
|
|
NSColor = ObjCClass('NSColor')
|
|
NSConstantString = ObjCClass('NSConstantString')
|
|
NSData = ObjCClass('NSData')
|
|
NSDecimalNumber = ObjCClass('NSDecimalNumber')
|
|
NSDictionary = ObjCClass('NSDictionary')
|
|
NSDockTile = ObjCClass('NSDockTile')
|
|
NSEnumerator = ObjCClass('NSEnumerator')
|
|
NSFont = ObjCClass('NSFont')
|
|
NSImage = ObjCClass('NSImage')
|
|
NSMenu = ObjCClass('NSMenu')
|
|
NSMenuItem = ObjCClass('NSMenuItem')
|
|
NSMutableArray = ObjCClass('NSMutableArray')
|
|
NSMutableData = ObjCClass('NSMutableData')
|
|
NSMutableDictionary = ObjCClass('NSMutableDictionary')
|
|
NSMutableSet = ObjCClass('NSMutableSet')
|
|
NSMutableString = ObjCClass('NSMutableString')
|
|
NSConcreteNotification = ObjCClass('NSConcreteNotification')
|
|
NSNotification = ObjCClass('NSNotification')
|
|
NSNull = ObjCClass('NSNull')
|
|
NSNumber = ObjCClass('NSNumber')
|
|
NSObject = ObjCClass('NSObject')
|
|
NSOpenPanel = ObjCClass('NSOpenPanel')
|
|
NSPageLayout = ObjCClass('NSPageLayout')
|
|
NSPrinter = ObjCClass('NSPrinter')
|
|
NSPrintInfo = ObjCClass('NSPrintInfo')
|
|
NSPrintOperation = ObjCClass('NSPrintOperation')
|
|
NSPrintPanel = ObjCClass('NSPrintPanel')
|
|
NSSavePanel = ObjCClass('NSSavePanel')
|
|
NSScreen = ObjCClass('NSScreen')
|
|
NSScrollView = ObjCClass('NSScrollView')
|
|
NSSet = ObjCClass('NSSet')
|
|
NSStatusBar = ObjCClass('NSStatusBar')
|
|
NSString = ObjCClass('NSString')
|
|
NSTableColumn = ObjCClass('NSTableColumn')
|
|
NSTableView = ObjCClass('NSTableView')
|
|
NSTextField = ObjCClass('NSTextField')
|
|
NSThread = ObjCClass('NSThread')
|
|
NSURL = ObjCClass('NSURL')
|
|
NSView = ObjCClass('NSView')
|
|
NSWindow = ObjCClass('NSWindow')
|
|
NSBool = NSNumber.numberWithBool_
|
|
NSDouble = NSNumber.numberWithDouble_
|
|
NSFalse = False
|
|
NSFloat = NSNumber.numberWithDouble_
|
|
NSInt = NSNumber.numberWithInt_
|
|
NSLong = NSNumber.numberWithLong_
|
|
NSLongLong = NSNumber.numberWithLongLong_
|
|
NSnil = None
hash(x)
|
|
NSNone = NSNone
|
|
NSTrue = True
|