Permalink
Browse files

fix CWURLRequest & NSStringAdditions to use new api

  • Loading branch information...
1 parent 036b923 commit b431b83aa9a2b4c6f1cd1ee49cec83d7d37b3bc8 @Machx committed Mar 31, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/CWURLRequest.m
  2. +1 −1 Source/NSStringAdditions.m
View
@@ -142,7 +142,7 @@ -(NSData *)startSynchronousConnection {
}
-(void)startAsynchronousConnectionWithCompletionBlock:(void (^)(NSData *data, NSError *error, NSURLResponse *response))block {
- const char *label = CWUUIDCStringPrependedWithString(@"com.Zangetsu.CWURLRequest");
+ const char *label = [CWUUIDStringPrependedWithString(@"com.Zangetsu.CWURLRequest") UTF8String];
dispatch_queue_t queue = dispatch_queue_create(label, 0);
dispatch_async(queue, ^{
NSData *data = [self startSynchronousConnection];
@@ -39,7 +39,7 @@ +(NSString *)cw_uuidString {
- (void)cw_enumerateConcurrentlyWithOptions:(NSStringEnumerationOptions)options
usingBlock:(void (^)(NSString *substring))block {
dispatch_group_t group = dispatch_group_create();
- const char *queueLabel = CWUUIDCStringPrependedWithString(@"com.Zangetsu.NSString_");
+ const char *queueLabel = [CWUUIDStringPrependedWithString(@"com.Zangetsu.NSString_") UTF8String];
dispatch_queue_t queue = dispatch_queue_create(queueLabel, DISPATCH_QUEUE_CONCURRENT);
[self enumerateSubstringsInRange:NSMakeRange(0, [self length])

0 comments on commit b431b83

Please sign in to comment.