/BEE.framework/BEE/BEEController.m
http://eeframework.googlecode.com/ · Objective C · 54 lines · 34 code · 17 blank · 3 comment · 0 complexity · 2057776208f6ab571021dd8c9fc2ff7f MD5 · raw file
- // -*- objc -*-
- #import <BEE/BEE.h>
- @implementation BEEController
- - (id)init
- {
- self = [super init];
- BEEStorageController *sc = [BEEStorageController sharedStorageController];
- ASSIGN(_sc, sc);
- return self;
- }
- - (void)dealloc
- {
- [_sc storeAllObjects];
- RELEASE(_sc);
- [super dealloc];
- }
- /* Foundation overridings */
- /* BEE specific */
- - (NSArray *)allObjects
- {
- return [_sc allObjects];
- }
- - (id)objectWithId:(NSNumber *)oid
- {
- return [_sc objectWithId:oid];
- }
- - (void)addObject:(id)o
- {
- [_sc addObject:o];
- }
- - (void)deleteObject:(id)o
- {
- [_sc deleteObject:o];
- }
- @end /* BEEController */
- @implementation BEEController ( private )
- @end /* BEEController ( private ) */