• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURL loadResourceDataNotifyingClient
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSURL loadResourceDataNotifyingClient
      • From: Tom Waters <email@hidden>
  • Prev by Date: Re: Currency Converter - NSTextField selectText: Works Sometimes! Bug?
  • Next by Date: Re: NSURL loadResourceDataNotifyingClient
  • Previous by thread: Re: Currency Converter sample [rateField selectText:self]; doesn't work...?
  • Next by thread: Re: NSURL loadResourceDataNotifyingClient
  • Index(es):
    • Date
    • Thread