Foundation - UBogun/Xojo-iosLib GitHub Wiki
Foundation is Appleโs shared framework for core classes: NSObject, Arrays, Dictionaries โ the most frequently used classes are part of Foundation.
You can tell a Foundation class by its name beginning with "NS" โ an abbreviation for NextStep, which is where the basics for these classes stem from.
Classes
- AppleObject: An implementation of NSObject, the base class of iOS Objects.
- AppleArray: Implementation of NSArray, the immutable iOS class for arrays.
- AppleMutableArray: Implementation of NSMutableArray.
- AppleBundle: Implementation of NSBundle.
- AppleData
- AppleMutableData
- AppleDictionary
- AppleMutableDictionary
- AppleError
- AppleInvocation
- AppleMethodSignature
- AppleMethodDescription
- AppleNumber
- AppleNotification: The class defining notifications sent by AppleNotificationCenter.
- AppleNotificationCenter: Implementation of NSNotificationCenter, a class for catching, forwarding and creating notifications.
- AppleOperationQueue
- AppleProtocol
- AppleResponder: Implementation of UIResponder, base class for controls that react on user input.
- AppleStringDrawingContext: Implementation of NSStringDrawingContext, a class to test AttributedString dimensions before drawing.
- AppleStringDrawingOptions
- AppleURL
- AppleURLRequest
- AppleURLSession (Optional, can be removed from the project without problems for the rest of the lib)
- AppleValue
Public Properties
IntegerSize As UInteger (read-only): Returns the size of an Integer in Bytes โ 4 on a 32bit and 8 on a 64bit system.
Public Methods
NSClassFromString (aClass As CFStringRef) As Ptr: Returns the ptr to a class.
NSProtocolFromString (aProtocol As CFStringRef) As Ptr: Returns a Protocol ptr for a protocol name.
NSSelectorFromString (aSelector As CFStringRef) As Ptr: Returns a method ptr for a selector string.
NSStringFromSelector (ASelector As Ptr) As CFStringRef: Does the opposite.
Structures
NSPoint: A structure for handling point values in iOS API calls.
NSRange: A structure for range limits in iOS API calls.
NSRect: A structure for handling Rect values in iOS API calls.
NSSize: A structure for handling Size values in iOS API calls.
Please note that many of these structures exist in a 32bit definition too. You will generally use the 64bit declaration (the one without the extension 32Bit) for iOSLib calls. Internally they are converted if needed. See the Conversion Modules section.