Changes between Version 2 and Version 3 of ObjectiveC/Classes


Ignore:
Timestamp:
Jan 11, 2009 5:29:12 AM (5 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ObjectiveC/Classes

    v2 v3  
    55One option might be something like 
    66{{{ 
    7 foreign export "@class MyUIView : UIView" 
     7foreign export "@class MyUIView : UIView" myUIView :: C'UIView 
    88}}} 
    9 The class would then be populated with methods in subsequent `foreign export` declarations. 
     9 
     10== Option 1: value definition == 
     11 
     12The class definition value `myUIView` contains the details of the class definition.  However, it is odd, because `C'UIView` should usually be the type of instances if of `UIView`. 
     13 
     14== Option 2: incremental definition == 
     15 
     16In addition to the `foreign export` declaring the class, the class is populated with methods in further `foreign export` declarations. 
    1017 
    1118We have the following problems: