| | 9 | For 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 | |
| | 17 | The [http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html normal Cocoa memory managment rules] apply to instances |
| | 18 | of Objective-C objects created from Lisp. The Lisp doesn't |
| | 19 | automatically release them. |
| | 20 | |
| | 21 | == Class methods == |
| | 22 | |
| | 23 | A class method such as |
| | 24 | {{{ |
| | 25 | @implementation FooPanel |
| | 26 | + sharedFooPanel |
| | 27 | { |
| | 28 | ... |
| | 29 | } |
| | 30 | @end |
| | 31 | }}} |
| | 32 | is defined like this: |
| | 33 | {{{ |
| | 34 | (objc:defmethod #/sharedFooPanel ((self +foo-panel)) |
| | 35 | ...) |
| | 36 | }}} |