Changes between Version 1 and Version 2 of CocoaBridgeTips


Ignore:
Timestamp:
Oct 20, 2007, 7:34:06 PM (14 years ago)
Author:
rme
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CocoaBridgeTips

    v1 v2  
    77Use `+null-ptr+` in Lisp where you would write `nil` in Objective-C.
    88
     9For example, you would write
     10{{{
     11(#/arrayWithObjects: ns:ns-array #@"foo" #@"bar" #@"baz"
     12                     +null-ptr+) ;don't even think about putting nil here
     13}}}
     14
     15== Memory Management ==
     16
     17The [http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html normal Cocoa memory managment rules] apply to instances
     18of Objective-C objects created from Lisp.  The Lisp doesn't
     19automatically release them.
     20
     21== Class methods ==
     22
     23A class method such as
     24{{{
     25@implementation FooPanel
     26+ sharedFooPanel
     27{
     28    ...
     29}
     30@end
     31}}}
     32is defined like this:
     33{{{
     34(objc:defmethod #/sharedFooPanel ((self +foo-panel))
     35  ...)
     36}}}