PageRenderTime 52ms CodeModel.GetById 27ms RepoModel.GetById 2ms app.codeStats 0ms

/samples/MarkerMurder/Classes/MarkerMurderAppDelegate.m

http://github.com/route-me/route-me
Objective C | 33 lines | 20 code | 9 blank | 4 comment | 0 complexity | b57d5fbe897cceeb792bf8d353085637 MD5 | raw file
  1. //
  2. // Sample2AppDelegate.m
  3. // SampleMap : Diagnostic map
  4. //
  5. #import "MarkerMurderAppDelegate.h"
  6. #import "RootViewController.h"
  7. #import "MainViewController.h"
  8. @implementation MarkerMurderAppDelegate
  9. @synthesize window;
  10. @synthesize rootViewController;
  11. - (void)applicationDidFinishLaunching:(UIApplication *)application {
  12. [window addSubview:[rootViewController view]];
  13. [window makeKeyAndVisible];
  14. }
  15. -(RMMapContents *)mapContents
  16. {
  17. return self.rootViewController.mainViewController.mapView.contents;
  18. }
  19. - (void)dealloc {
  20. [rootViewController release];
  21. [window release];
  22. [super dealloc];
  23. }
  24. @end