Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Cocoa the Mac's equivalence of Win32 API or MFC in Windows?

Is there a lower level of API below Cocoa as Win32 API below MFC? If there is, Is it widely used in Mac OS X or iOS Application develepment?

like image 797
TomCaps Avatar asked Nov 12 '11 03:11

TomCaps


People also ask

What API does Mac use?

Cocoa is Apple's native object-oriented application programming interface (API) for its desktop operating system macOS.

Does Win32 work on Mac?

Win32 Disk Imager is not available for Mac but there are plenty of alternatives that runs on macOS with similar functionality. The best Mac alternative is balenaEtcher, which is both free and Open Source.

Is Win32 API obsolete?

The Windows API is still being developed. For example, see Windows 8.1 New APIs and features for developers and Windows 8 and 8.1 API Index. Obsolete? Not likely.

What is Cocoa framework?

The Cocoa frameworks. The classes in Foundation provide objects and functionality that are the basis, or “foundation,” of Cocoa. The classes in Application Kit furnish the objects and behavior that your users see in the user interface, such as windows and buttons, and handle their mouse clicks and key presses.


1 Answers

CoreFoundation is the lower level C APIs:

http://developer.apple.com/corefoundation/

Foundation classes is the higher objective-c foundation set of classes:

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/ObjC_classic/_index.html

Apple offers 'toll-free' bridging of types between these:

http://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFDesignConcepts/Articles/tollFreeBridgedTypes.html

For OSX AppKit (Cocoa) is the higher level UI framework which uses the foundation classes:

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/_index.html

For Devices (iOS), there's UIKit (Cocoa Touch) over the foundation classes:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKit_Framework/_index.html

All of these are widely used in OSX and iOS development ...

like image 76
bryanmac Avatar answered Sep 21 '22 09:09

bryanmac