title: Access @property from ^block
body: <p>I am getting an (lldb) error when I try to make changes to a @property I declared in my StreamScreen UIViewController class. </p>
  
  <p>I am making trying to change the feedList object in the asyncRequest success block. The asyncRequest method is a class method that I imported and is part of my class called NSURLConnection-block.</p>
  
  <p><strong>So...</strong></p>
  
  <p>I am trying to change an NSMutableArray (feedList) which is part of StreamScreen inside a block in StreamScreen and that block is called by a class method (asyncRequest) from another class but I am getting an error.</p>
  
  <p>In the Debug Navigator I get - <code>error: address doesn't contain a section that points to a section in a object file</code></p>
  
  <p><strong>Here is some of my code...</strong> </p>
  
  <p><strong>This is where I declare the feedList @property (StreamScreen.h)</strong></p>
  
  <pre><code>@property (strong, nonatomic) NSMutableArray *feedList;
  </code></pre>
  
  <p><strong>The code below is the getStream method with the asyncRequest class method in  (StreamScreen.m)</strong></p>
  
  <pre><code>- (void)getStream {
      NSString *fbAccessToken = [[[FBSession activeSession] accessTokenData] accessToken];
      NSString *urlString = [NSString stringWithFormat: @"http://198.199.71.169/getFB.php?at=%@", fbAccessToken];
      NSURL *url = [[NSURL alloc] initWithString:urlString];
      NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
      [NSURLConnection asyncRequest:request
                            success:^(NSData *data, NSURLResponse *response) {
                                NSLog(@"%@", feedList);
                            }
                            failure:^(NSData *data, NSError *error) {
                                NSLog(@"Error! %@",[error localizedDescription]);
                            }];
  }
  </code></pre>
  
  <p>I instantiate the feedList NSMutableArray and call the getStream method in my viewDidLoad method</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      feedList = [[NSMutableArray alloc] initWithObjects:@"zero", @"one", @"two", nil];
      [self getStream];    
  }
  </code></pre>
  
  <p><em><strong>EDIT:</em></strong></p>
  
  <p><strong>Here is NSURLConnection-block.m</strong></p>
  
  <pre><code>#import "NSURLConnection-block.h"
  
  @implementation NSURLConnection (block)
  
  #pragma mark API
  + (void)asyncRequest:(NSURLRequest *)request success:(void(^)(NSData *,NSURLResponse *))successBlock_ failure:(void(^)(NSData *,NSError *))failureBlock_
  {
      [NSThread detachNewThreadSelector:@selector(backgroundSync:) toTarget:[NSURLConnection class]
                             withObject:[NSDictionary dictionaryWithObjectsAndKeys:
                                         request,@"request",
                                         successBlock_,@"success",
                                         failureBlock_,@"failure",
                                         nil]];
  }
  
  #pragma mark Private
  + (void)backgroundSync:(NSDictionary *)dictionary
  {
      //NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
      void(^success)(NSData *,NSURLResponse *) = [dictionary objectForKey:@"success"];
      void(^failure)(NSData *,NSError *) = [dictionary objectForKey:@"failure"];
      NSURLRequest *request = [dictionary objectForKey:@"request"];
      NSURLResponse *response = nil;
      NSError *error = nil;
      NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
      if(error)
      {
          failure(data,error);
      }
      else
      {
          success(data,response);
      }
      //[pool release];
  }
  
  
  @end
  </code></pre>
  
  <p><strong>Here is NSURLConnection-block.h</strong></p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface NSURLConnection (block)
  #pragma mark Class API Extensions
  + (void)asyncRequest:(NSURLRequest *)request success:(void(^)(NSData *,NSURLResponse *))successBlock_ failure:(void(^)(NSData *,NSError *))failureBlock_;
  @end
  </code></pre>
  
  <p>I hope someone can help me. I'd really appreciate it! :)</p>