• 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
Re: Odd WebView Bhaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd WebView Bhaviour


  • Subject: Re: Odd WebView Bhaviour
  • From: Aaron Tuller <email@hidden>
  • Date: Wed, 25 May 2005 14:11:44 -0700

are you displaying in a modal panel?  it won't work.

you need to be running in default run loop mode.

this has caught me many times, for some reason I always forget.

-aaron

At 8:16 PM +0100 5/25/05, Thomas Davie wrote:
Hi,
I've been trying to grab html output and display it in a web view, but nothing loads, I've confirmed that it should by logging th URL and trying to view it in safari - which displays the expected output.


- (IBAction)search:(id)sender
{
    NSString *hoogleBin = [[NSBundle mainBundle] pathForResource:@"xhoogle"
                                                          ofType:@""];
    NSString *searchString = [self quoteArrows:[sender stringValue]];
    NSString *hoogleDir = [hoogleBin stringByDeletingLastPathComponent];
    NSURL *hoogleOutURL = [NSURL fileURLWithPath:
        [hoogleDir stringByAppendingPathComponent:@"temp.html"]];
    NSURLRequest *hoogleOutReq = [NSURLRequest requestWithURL:hoogleOutURL];

    [spinner animate:self];
    [spinner setHidden:NO];

    NSTask *hoogleSearch = [[NSTask alloc] init];

    [hoogleSearch setLaunchPath:hoogleBin];
    [hoogleSearch setCurrentDirectoryPath:hoogleDir];
    [hoogleSearch setArguments:[NSArray arrayWithObject:searchString]];
    [hoogleSearch launch];

    while ([hoogleSearch isRunning]) {}
    [hoogleSearch release];

    [[resultsView mainFrame] loadRequest:hoogleOutReq];

    [spinner setHidden:YES];
    [spinner stopAnimation:self];
}


Bob _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Odd WebView Bhaviour (From: Thomas Davie <email@hidden>)

  • Prev by Date: Temporarily disabling Undo Registration with Core Data
  • Next by Date: Re: Temporarily disabling Undo Registration with Core Data
  • Previous by thread: Odd WebView Bhaviour
  • Next by thread: Re: Odd WebView Bhaviour
  • Index(es):
    • Date
    • Thread