Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing constants.

  • Loading branch information...
commit fd86d3519aabf5f6f5f2b01ddea0ad33af04cb8b 1 parent b8ae95c
Pavel Kunc authored
4  Source/Foundation/PKError.h
@@ -8,6 +8,10 @@
8 8
 
9 9
 #import <Foundation/Foundation.h>
10 10
 
  11
+#ifndef PK_ERROR_PROJECT_DOMAIN
  12
+#define PK_ERROR_PROJECT_DOMAIN = @"PKErrorDomain"
  13
+#endif
  14
+
11 15
 @interface PKError : NSError
12 16
 
13 17
 + (id)errorWithCode:(NSInteger)code;
2  Source/Foundation/PKError.m
@@ -40,7 +40,7 @@ + (id)errorWithCode:(NSInteger)aCode userInfo:(NSDictionary *)aDictionary {
40 40
 - (id)initWithDomain:(NSString *)aDomain
41 41
                 code:(NSInteger)aCode
42 42
             userInfo:(NSDictionary *)aDictionary {
43  
-    return [super initWithDomain:PROJECT_ERROR_DOMAIN code:aCode userInfo:aDictionary];
  43
+    return [super initWithDomain:PK_ERROR_PROJECT_DOMAIN code:aCode userInfo:aDictionary];
44 44
 }
45 45
 
46 46
 @end
6  Source/Views/PKAlertView.m
@@ -8,6 +8,10 @@
8 8
 
9 9
 #import "PKAlertView.h"
10 10
 
  11
+#ifndef PK_ALERTVIEW_SYSTEM_ERROR_TAG
  12
+#define PK_ALERTVIEW_SYSTEM_ERROR_TAG = 0
  13
+#endif
  14
+
11 15
 @implementation PKAlertView
12 16
 
13 17
 - (void)dealloc {
@@ -24,7 +28,7 @@ + (PKAlertView *)alertWithSystemError:(NSError *)aError delegate:(id)aDelegate {
24 28
                                                    delegate:aDelegate
25 29
                                           cancelButtonTitle:NSLocalizedString(@"OK", nil)
26 30
                                           otherButtonTitles:nil];
27  
-    [alert setTag:PKAlertViewTagSystemError];
  31
+    [alert setTag:PK_ALERTVIEW_SYSTEM_ERROR_TAG];
28 32
     return alert;
29 33
 }
30 34
 

0 notes on commit fd86d35

Please sign in to comment.
Something went wrong with that request. Please try again.