March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,7 +1,7 @@
|
|||
@implementation MyClass
|
||||
|
||||
// Was not declared because init is defined in NSObject
|
||||
- init
|
||||
- (id)init
|
||||
{
|
||||
if (self = [super init])
|
||||
variable = 0;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,3 @@ MyClass *mc = [[MyClass alloc] init];
|
|||
|
||||
// Sending a message
|
||||
[mc variable];
|
||||
|
||||
// Releasing it. When its reference count goes to zero, it will be deallocated
|
||||
[mc release];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue