Hi, All:
I have a problem when I implement my WebPolicyDelegate:
decidePolicyForNavigationAction.
I wanna know some information about a link when I click it in a html page.
Below is part of my code(tesing code):
-(void)webView:(WebView *)sender
decidePolicyForNavigationAction:(NSDictionary *)
actionInformation.....
{
NSDictionary * dic = (NSDictionary *)[actionInformation
objectForKey:WebActionElementKey ];
int c = [dic count];
NSArray *keys = [dic allKeys];
for (int i = 0; i<c; i++) {
NSString * key = [keys objectAtIndex:i];
NSLog (key);
NSLog ([[[dic objectForKey:key] class] description]);
}
}
Below is the printing result (ignore some not important part):
...
WebElementTargetFrame WebFrame
...
WebElementFrame WebFrame
------------
Now, my question is: From apple's description of the key-value pair
for "WebActionElementKey", only "WebElementFrameKey" has value of type
"WebFrame", but here I got 2 things have type of WebFrame. Is that
because I miss anything?
Regards
Huaixing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden
This email sent to email@hidden