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



On Jun 30, 2004, at 1:46 PM, John Sullivan wrote:

On Jun 30, 2004, at 10:59 AM, John Kinder wrote:

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?

I don't recognize a problem, but I'm not familiar with the Carbon way of accessing these methods. Is doSetTabsToLinks non-NULL?
I tried the above code in both my carbon application and in the Cocoa MiniBrowser to the same results. In both cases, doSetTabsToLinks was non-NULL and was called. Also, in my application I was able to see that the HIWebView did have key focus, since it did respond to the up and down arrow keys, just not the tab key.

Is there a similar call to get the value of the preference, so I can verify that the call succeeded?

Any other ideas of what could be going wrong?



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?

This is not correct. Preferences like this are stored per-application, so setting this in Safari will have no effect on other applications. If you think the documentation about this is not clear, it would be helpful to file a bug about the documentation.
Probably more a bad assumption on my part.

JK
_______________________________________________
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>)
 >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.