Changes between Version 5 and Version 6 of ObjectiveC


Ignore:
Timestamp:
Jan 13, 2009 6:12:07 AM (5 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ObjectiveC

    v5 v6  
    1919We require the programmer to supply headers for all Objective-C classes implemented in Haskell.  This enables the Objective-C compiler to do type checking and enables Interface Builder to recognises properties used as outlets. 
    2020 
     21== Architecture == 
     22 
     23Following the structure of the C FFI, the basic Objective-C FFI has two major components: (1) an extension of the Haskell language by new forms of `foreign` declarations and (2) a standard library.  The C FFI uses the `ccall` (and `stdcall`) calling convention for `foreign` declarations, whereas Objective-C uses the new `objc` calling convention.  The C-specific FFI library is `Foreign.C` (aka `CForeign`) and, for Objective-C, we use `Foreign.ObjectiveC`. 
     24 
     25In addition to the low-level FFI, higher-level libraries and tools may provide more convenient APIs.  In particular, the basic FFI makes no attempt to model Objective-C's class hierarchy and overloading of selectors in Haskell's type system.  This is the responsibility of higher-level libraries. 
     26 
    2127== Subtopics == 
    2228 
     
    2733 * [ObjectiveC/Naming Naming conventions] (they are not enforced, but recommended) 
    2834 * [ObjectiveC/MemoryManagement Memory management]  
     35 * `Foreign.Objective.C` 
    2936 
    3037== Background and related work ==