Permalink
Browse files

UIApplication+mxcl

  • Loading branch information...
1 parent 2ad755e commit d83288e5c7de026bc5139087327174d0e441986a @mxcl committed Sep 8, 2011
Showing with 14 additions and 0 deletions.
  1. +1 −0 MBCategories.h
  2. +1 −0 MBCategories.m
  3. +5 −0 UIApplication+mxcl.h
  4. +7 −0 UIApplication+mxcl.m
View
@@ -6,4 +6,5 @@
#import "UIAlertView+mxcl.h"
#import "UIColor+mxcl.h"
#import "UIAlertView+mxcl.h"
+#import "UIApplication+mxcl.h"
#import "UITableView+mxcl.h"
View
@@ -6,4 +6,5 @@
#import "UIAlertView+mxcl.m"
#import "UIColor+mxcl.m"
#import "UIAlertView+mxcl.m"
+#import "UIApplication+mxcl.m"
#import "UITableView+mxcl.m"
View
@@ -0,0 +1,5 @@
+#import <UIKit/UIKit.h>
+
+@interface UIApplication (mxcl)
++ (id)documentsDirectory;
+@end
View
@@ -0,0 +1,7 @@
+#import "UIApplication+mxcl.h"
+
+@implementation UIApplication (mxcl)
++ (NSString *)documentsDirectory {
+ return [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
+}
+@end

0 comments on commit d83288e

Please sign in to comment.