On Aug 18, 2012, at 4:24 AM, Koen van der Drift <koenvanderdr...@gmail.com> 
wrote:

> In my OS X app I show some webpages in a WebView, but I'd like to show them 
> stripped down, remove clutter, e.g. as is done in Evernote and other apps. 
> 
> Any suggestions where to start? Maybe use a local css file?

This is a good start. I believe "user stylesheet" is the term of art for a 
local override stylesheet. From a quick Google, the relevant APIs are on the 
WebPreferences class: -setUserStyleSheetEnabled: and 
-setUserStyleSheetLocation:. You could start with one of the common "reset" 
stylesheets and customize it from there.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to