Lines Matching refs:Foundation
5 import Foundation
12 Foundation.NSFileTypeForHFSTypeCode('rtfx'))
21 Foundation.NSFileTypeForHFSTypeCode(fourchar))
24 Foundation.NSFileTypeForHFSTypeCode(fourchar))
28 Foundation.NSHFSFTypeCodeFromFileType(u"'rtfx'"))
32 self.assert_(hasattr(Foundation, 'NSMakeRect'))
35 Foundation.NSMakeRect(1.5, 2.5, 3.5, 4.5),
39 Foundation.NSMakeRect(1, 2, 3, 4),
43 self.assertRaises(ValueError, Foundation.NSMakeRect, 1.0, 2.0, 3.0, '4')
46 rect1 = Foundation.NSMakeRect(1.0, 2.0, 3.0, 4.0)
48 slice, rem = Foundation.NSDivideRect(rect1, None, None, 0.5, Foundation.NSMinXEdge)
52 slice, rem = Foundation.NSDivideRect(rect1, None, None, 0.5, Foundation.NSMinYEdge)
57 self.assert_(hasattr(Foundation, 'NSLogPageSize'))
58 self.assert_(hasattr(Foundation, 'NSRangeFromString'))
59 self.assert_(hasattr(Foundation, 'NSTemporaryDirectory'))
60 self.assert_(hasattr(Foundation, 'NSDecrementExtraRefCountWasZero'))
65 self.assert_(hasattr(Foundation, 'NS_LittleEndian'))
68 self.assert_(hasattr(Foundation, 'NSConnectionReplyMode'))
72 self.assert_(hasattr(Foundation, 'NSFoundationVersionNumber'))
89 Foundation.NSLog("This is a test")
96 self.assertRaises(ValueError, Foundation.NSLog, "This is a test %@")
100 Foundation.NSLog("This is a test%@", ", ronald")
107 if hasattr(Foundation, 'NSMetadataQuery'):
108 self.assert_(hasattr(Foundation, 'NSMetadataQueryDidFinishGatheringNotification'))
109 self.assert_(isinstance(Foundation.NSMetadataQueryDidFinishGatheringNotification, unicode))