PageRenderTime 25ms CodeModel.GetById 23ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/Classes/XiangshengAppDelegate.h

http://xiangsheng.googlecode.com/
C Header | 35 lines | 19 code | 9 blank | 7 comment | 0 complexity | c1a4c0fcd9bc84c23461c6d333a6cee5 MD5 | raw file
 1//
 2//  XiangshengAppDelegate.h
 3//  Xiangsheng
 4//
 5//  Created by wangchi on 10-12-11.
 6//  Copyright 2010 __MyCompanyName__. All rights reserved.
 7//
 8
 9#import <UIKit/UIKit.h>
10#import <CoreData/CoreData.h>
11
12@class XiangshengViewController;
13
14@interface XiangshengAppDelegate : NSObject <UIApplicationDelegate> {
15    UIWindow *window;
16    XiangshengViewController *viewController;
17	
18@private
19    NSManagedObjectContext *managedObjectContext_;
20    NSManagedObjectModel *managedObjectModel_;
21    NSPersistentStoreCoordinator *persistentStoreCoordinator_;
22}
23
24@property (nonatomic, retain) IBOutlet UIWindow *window;
25@property (nonatomic, retain) IBOutlet XiangshengViewController *viewController;
26
27@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
28@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
29@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;
30
31- (NSURL *)applicationDocumentsDirectory;
32- (void)saveContext;
33
34@end
35