Changeset 5449
- Timestamp:
- 03/20/08 14:59:34 (7 months ago)
- Files:
-
- WiredAdditions/trunk/WNError.h (modified) (1 diff)
- WiredAdditions/trunk/WNError.m (modified) (3 diffs)
- WiredAdditions/trunk/WNP7Message.h (added)
- WiredAdditions/trunk/WNP7Message.m (added)
- WiredAdditions/trunk/WNP7Socket.h (added)
- WiredAdditions/trunk/WNP7Socket.m (added)
- WiredAdditions/trunk/WNP7Spec.h (added)
- WiredAdditions/trunk/WNP7Spec.m (added)
- WiredAdditions/trunk/WiredNetworking.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredAdditions/trunk/WNError.h
r4979 r5449 33 33 WNSocketConnectFailed, 34 34 WNSocketWriteFailed, 35 WNSocketReadFailed 35 WNSocketReadFailed, 36 37 WNP7SpecLoadFailed 36 38 }; 37 39 WiredAdditions/trunk/WNError.m
r5043 r5449 53 53 description = [NSString stringWithUTF8String:wi_string_cstring(wi_error_string())]; 54 54 userInfo = userInfo ? [[userInfo mutableCopy] autorelease] : [NSMutableDictionary dictionary]; 55 [(NSMutableDictionary *) userInfo setObject:description forKey:NSLocalizedDescriptionKey]; 55 56 if(description) 57 [(NSMutableDictionary *) userInfo setObject:description forKey:NSLocalizedDescriptionKey]; 56 58 57 59 wi_release(pool); … … 92 94 case WNSocketReadFailed: 93 95 return WNLS(@"Socket Read Failed", @"WNError: WNSocketReadFailed title"); 96 break; 97 98 case WNP7SpecLoadFailed: 99 return WNLS(@"Protocol Specification Load Failed", @"WNError: WNP7SpecLoadFailed title"); 94 100 break; 95 101 … … 137 143 break; 138 144 145 case WNP7SpecLoadFailed: 146 return [NSSWF:WNLS(@"Could not load %@: %@.", @"WNError: WNP7SpecLoadFailed description (address, underlying error)"), 147 [argument lastPathComponent], error]; 148 break; 149 139 150 default: 140 151 break; WiredAdditions/trunk/WiredNetworking.h
r4982 r5449 69 69 #import <WiredNetworking/WNApplication.h> 70 70 #import <WiredNetworking/WNError.h> 71 #import <WiredNetworking/WNP7Message.h> 72 #import <WiredNetworking/WNP7Socket.h> 73 #import <WiredNetworking/WNP7Spec.h> 71 74 #import <WiredNetworking/WNSocket.h> 72 75 #import <WiredNetworking/WNThread.h>
