Class Extensions Code

5 views
Skip to first unread message

Vincent Coetzee

unread,
Aug 25, 2011, 5:04:28 PM8/25/11
to CocoaHeads Johannesburg
//
// Client.h
// AnticsAnimated
//
// Created by Vincent Coetzee on 2011/08/25.
// Copyright (c) 2011 BBD. All rights reserved.
//

#import <Foundation/Foundation.h>

//
// Standard interface definition
//
@interface Client : NSObject
{
@protected
__strong NSString* firstName;
__strong NSString* lastName;
}

@property(readonly,strong) NSString* firstName;
@property(readonly,strong) NSString* lastName;

@end

//
//
// Class extension
//
//
@interface Client ()
{
@protected
__strong NSString* secretName;
}

@property(readwrite,strong) NSString* firstName;
@property(readwrite,strong) NSString* lastName;
@property(readwrite,strong) NSString* secretName;

@end




#import "Client.h"

//
//
// Private instance variable declarations
//
@implementation Client
{
@protected
__strong NSString* fullName;
}

@synthesize firstName;
@synthesize lastName;
@synthesize secretName;

@end

Reply all
Reply to author
Forward
0 new messages