Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlight links pressing tab



I have Safari 1.2.2 (v125.8) installed, and set the preference in the 
browser.   My WebView still wasn't handling the tab key, so I added the 
following code to both CarbonWeb and the MiniBrowser, to make sure the 
preference was set in those apps.

	typedef void (* DoPrefsSetTabsToLinksProc) (id,SEL,BOOL);

	[webView setPreferencesIdentifier:@"com.adobe.mybrowsertest"];
	WebPreferences * webprefs = [webView preferences];

	if( [webprefs respondsToSelector:@selector(setTabsToLinks:)] )
	{
		DoPrefsSetTabsToLinksProc  doSetTabsToLinks = 
(t_doSetTabsToLinksProc)[webprefs 
methodForSelector:@selector(setTabsToLinks:)];	

		if( doSetTabsToLinks != NULL )
			doSetTabsToLinks( webprefs, @selector(setTabsToLinks:), YES );
	}

The WebView in both those Apps is not highlighting links with the Tab 
key.  Am I doing something wrong here?

Also, from the documentation, it sounds like if the preference is set 
in Safari, I should pick it up in my application without setting the 
value.  Is that correct?

JK


On Jun 29, 2004, at 1:25 PM, John Sullivan wrote:

> Yes, given a new-enough Panther.
>
> John
>
> On Jun 29, 2004, at 12:46 PM, John Kinder wrote:
>
>> Thanks.  And will that be available for Panther?
>>
>> JK
>>
>>
>> On Jun 29, 2004, at 12:39 PM, John Sullivan wrote:
>>
>>> You can use the WebPreferences method:
>>>
>>> - (void)setTabsToLinks:(BOOL)flag;
>>>
>>> It's in the WebKit APIs for the version being distributed at WWDC.
>>>
>>> John
>>>
>>>
>>> On Jun 29, 2004, at 11:10 AM, John Kinder wrote:
>>>
>>>> Sorry, I hit send before intended, and maybe I should just wait for 
>>>> the WWDC session.
>>>>
>>>> In Safari, there is a preference for highlighting links as the user 
>>>> presses the Tab key.  Is there a way to get that functionality into 
>>>> our WebView?
>>>>
>>>> JK
>>>>
>>>> ------------------------------------------------------------
>>>> John Kinder
>>>> ------------------------------------------------------------
>>>> No matter how I struggle and strive,
>>>> I'll never get out of this world alive.
>>>> 					- H. Williams Sr.
>>>> _______________________________________________
>>>> webkitsdk-dev mailing list | email@hidden
>>>> Help/Unsubscribe/Archives: 
>>>> http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
>>>> Do not post admin requests to the list. They will be ignored.
>> _______________________________________________
>> webkitsdk-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives: 
>> http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> webkitsdk-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: 
> http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >highlight links pressing tab (From: John Kinder <email@hidden>)
 >highlight links pressing tab (From: John Kinder <email@hidden>)
 >Re: highlight links pressing tab (From: John Sullivan <email@hidden>)
 >Re: highlight links pressing tab (From: John Kinder <email@hidden>)
 >Re: highlight links pressing tab (From: John Sullivan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.