Skip to content

Commit

Permalink
working commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aashidham committed Dec 30, 2011
1 parent 73ed80a commit d416292
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions accounting/accountingAppDelegate.h
Expand Up @@ -17,8 +17,8 @@
@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UISegmentedControl* segmentedControl;
@property (nonatomic, retain) UINavigationController *navigationController;
@property (nonatomic, retain) RootViewController* rVC;
@property (nonatomic, retain) CalendarViewController* cVC;
//@property (nonatomic, retain) RootViewController* rVC;
//@property (nonatomic, retain) CalendarViewController* cVC;

- (NSArray*)toolBarItems;

Expand Down
10 changes: 3 additions & 7 deletions accounting/accountingAppDelegate.m
Expand Up @@ -14,14 +14,14 @@ @implementation accountingAppDelegate

@synthesize navigationController;
@synthesize window=_window;
@synthesize segmentedControl,cVC,rVC;
@synthesize segmentedControl;//,cVC,rVC;

#pragma mark -
#pragma mark Helper Methods

- (void) firstPane
{
NSArray * theViewControllers = [NSArray arrayWithObject:self.cVC];
NSArray * theViewControllers = [NSArray arrayWithObject:[[CalendarViewController alloc]init]];
[self.navigationController setViewControllers:theViewControllers animated:NO];
}

Expand All @@ -36,7 +36,7 @@ - (void)indexDidChangeForSegmentedControl:(UISegmentedControl *)aSegmentedContro
}
case 1:
{
NSArray * theViewControllers = [NSArray arrayWithObject:self.rVC];
NSArray * theViewControllers = [NSArray arrayWithObject:[[RootViewController alloc]init]];
[self.navigationController setViewControllers:theViewControllers animated:NO];
break;
}
Expand Down Expand Up @@ -68,8 +68,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
// Override point for customization after application launch.
// Add the navigation controller's view to the window and display.
self.cVC = [[CalendarViewController alloc] init];
self.rVC = [[RootViewController alloc] init];
NSArray* topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"SegmentedControl" owner:self options:nil];
self.segmentedControl = [topLevelObjects objectAtIndex:0];
self.navigationController = [[UINavigationController alloc] init];
Expand All @@ -88,8 +86,6 @@ - (void)dealloc
[_window release];
[segmentedControl release];
[navigationController release];
[rVC release];
[cVC release];
[super dealloc];
}

Expand Down
Binary file not shown.

0 comments on commit d416292

Please sign in to comment.