NSURL loadResourceDataNotifyingClient
NSURL loadResourceDataNotifyingClient
- Subject: NSURL loadResourceDataNotifyingClient
- From: Tom Waters <email@hidden>
- Date: Mon, 16 Jul 2001 01:19:51 -0700
Is is just me? or is loadResourceDataNotifyingClient a NOP?
@implementation NSURLLoadResourceDataNotifyingClientDoesntWorkAtAll
-(id)init
{
NSURL url = [NSURL URLWithString:
@"file:///Library/WebServer/Documents/PoweredByMacOSX.gif"];
[url loadResourceDataNotifyingClient:self usingCache:NO];
}
- (void)URLHandle:(NSURLHandle *)sender
resourceDataDidBecomeAvailable:(NSData *)newBytes
{
NSLog(@"resourceDataDidBecomeAvailable(%d)", [newBytes length]);
}
- (void)URLHandleResourceDidBeginLoading:(NSURLHandle *)sender
{
NSLog(@"URLHandleResourceDidBeginLoading");
}
- (void)URLHandleResourceDidFinishLoading:(NSURLHandle *)sender
{
NSLog(@"URLHandleResourceDidFinishLoading");
}
- (void)URLHandleResourceDidCancelLoading:(NSURLHandle *)sender
{
NSLog(@"URLHandleResourceDidCancelLoading");
}
- (void)URLHandle:(NSURLHandle *)sender
resourceDidFailLoadingWithReason:(NSString *)reason
{
NSLog(@"resourceDidFailLoadingWithReason %@", reason);
}
@end