If you are using ARC and the latest Xcode - get rid of the getURL method - you should not be overwriting this unless you need to do custom logic, furthermore, your getURL method returns nothing and is a void method - so the variable is most likely set but your method is overwriting the automatically generated getter and is returning nothing.
Did a test in Xcode
In header file I have:
@property (nonatomic, strong) NSURL *getURL;
and then in implementation file I have:
- (void)documentURLReceived:(NSURL *)url
{
_getURL = url;
NSLog(@"%@",_getURL);
}
which outputs:
2013-04-04 23:29:27.681 VitalityDesignTestSuite[90518:c07]
http://www.google.com
okie dokie I wrote you a sample:
http://bit.ly/10yWb36
to use those you can go:
MyViewController *mvc = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
//Now you can set the myURL variable directly
[mvc setMyURL:[NSURL URLWithString:@"http://www.google.com"]];
NSLog(@"Direct Setting: %@",mvc.myURL);
//OR you can call the method your wrote
[mvc documentDidReceiveURL:[NSURL URLWithString:@"http://www.google.com"]];
NSLog(@"Selector Setting: %@",mvc.myURL);
that outputs:
2013-04-04 23:39:09.407 VitalityDesign[92197:c07] Direct Setting: http://www.google.com
2013-04-04 23:39:09.408 VitalityDesign[92197:c07] Selector Setting: http://www.google.com
hope this helps