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?
- Koen.
___
Cocoa-dev mailing list
On Aug 18, 2012, at 7: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
otool is your friend when you want to find these things out.
Aperture, Logic and the other Apple Pro apps use a framework called
ProKit. It is internal and private.
See: /System/Library/PrivateFrameworks/ProKit.framework
The images are in a custom binary file:
On 17 Aug 2012, at 9:15 PM, Erik Stainsby erik.stain...@roaringsky.ca wrote:
I have a view-based table in which there are four distinct row types,
representing distinct object types which may appear. The tableRowViews are in
the nib and represented in the code here as xxxCellView entities.
How about asynchronously downloading the page HTML into a string, doing a text
replace of the name of the CSS file to your local one, then passing the
modified HTML to the web view?
Sent from my iPhone
On Aug 18, 2012, at 6:52 AM, Koen van der Drift koenvanderdr...@gmail.com
wrote:
On Aug
On Sat, 04 Aug 2012 00:39:43 +0700, Gerriet M. Denkmann
gerr...@mdenkmann.de said:
If I understand this correctly, I have to do:
create a view controller for my basicView (currently there is none) and
use [ basicViewController addChildViewController: sliderViewController ] and
not use [ self
On Fri, 03 Aug 2012 23:22:17 +0700, Gerriet M. Denkmann
gerr...@mdenkmann.de said:
I have a subclass of UIViewController which displays a small view in the
center of the display.
shouldAutorotateToInterfaceOrientation: returns YES.
This view is only shown on demand.
The problem:
If the device
On Mon, 06 Aug 2012 00:11:39 +0700, Gerriet M. Denkmann
gerr...@mdenkmann.de said:
I use this code (iOS 5.1):
CGAffineTransform m = { c, +s, -s, c, 0, 0 }; // rotation, s =
sin(angle), c = cos(angle)
CALayer *layer = self.view.layer; // view is UIView, self is
On Aug 18, 2012, at 8:26 AM, Steve Christensen puns...@mac.com wrote:
How about asynchronously downloading the page HTML into a string, doing a
text replace of the name of the CSS file to your local one, then passing the
modified HTML to the web view?
Doesn't work if there are style rules
On Thu, 16 Aug 2012 20:46:17 -0500, Shane
software.research.developm...@gmail.com said:
On Fri, Aug 10, 2012 at 4:12 PM, Shane
software.research.developm...@gmail.com wrote:
I'm trying to use Help Indexer.app after a long while and a few
upgrades of a working help project. When trying to select
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
On 18 Aug 2012, at 10:32 am, Matt Neuburg m...@tidbits.com wrote:
Try the apple-help-authoring list. And be accurate; I'm sure you're not
really calling your help index MyHelp.index (are you???). Also, does your
help actually *use* anchors? You won't find any unless there are some. m.
On Aug 18, 2012, at 1:40 PM, Kyle Sluder k...@ksluder.com wrote:
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
User stylesheets should work just fine, so you should try to figure out what's
going wrong with that. Perhaps don't use standardPreferences; use [self.webView
setPreferencesIdentifier:@mySpecialPreferences] to generate a new preferences
object for your WebView, then [self.webView preferences]
On Aug 18, 2012, at 2:46 PM, Matt Patenaude m...@mattpatenaude.com wrote:
User stylesheets should work just fine, so you should try to figure out
what's going wrong with that. Perhaps don't use standardPreferences; use
[self.webView setPreferencesIdentifier:@mySpecialPreferences] to
Ah! Your problem is URLWithString:. You want fileURLWithPath:. :)
-Matt
Sent from my iPhone
On Aug 18, 2012, at 12:12 PM, Koen van der Drift koenvanderdr...@gmail.com
wrote:
On Aug 18, 2012, at 2:46 PM, Matt Patenaude m...@mattpatenaude.com wrote:
User stylesheets should work just fine,
On Aug 18, 2012, at 3:26 PM, Matt Patenaude m...@mattpatenaude.com wrote:
Ah! Your problem is URLWithString:. You want fileURLWithPath:. :)
Well spotted, thanks!
- Koen.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
Is there a similar way to inject an external javascript.js file into my
webView? I think I can use that to strip out the divs I don't want to show.
On Aug 18, 2012, at 3:32 PM, Koen van der Drift koenvanderdr...@gmail.com
wrote:
On Aug 18, 2012, at 3:26 PM, Matt Patenaude
You can use the DOM: dynamically create a Script tag then allow it to
load more stuff by abusing -stringByEvaluatingJavaScriptFromString: .
On Aug 18, 2012, at 2:51 PM, Koen van der Drift
koenvanderdr...@gmail.com wrote:
Is there a similar way to inject an external javascript.js file into my
I'd like to know how to how to write my own MissionControl/Exposè replacement
for Mountain Lion. I am very new to Cocoa, and this might be my first project
with Cocoa.
For those of us who think it might not be possible, it is already done in
TotalSpaces (http://totalspaces.binaryage.com).
Thanks for the thought Fritz. Removing my ham-handed attempt to purge the
tableView of its rows indeed resolved the out of range error.
On 2012-08-18, at 8:24 AM, Fritz Anderson fri...@manoverboard.org wrote:
My expectation is that I ought to be able to clear the table (iterating
through the
On Aug 18, 2012, at 4:26 PM, Commodore 64 salmankhi...@yahoo.com wrote:
I'd like to know how to how to write my own MissionControl/Exposè replacement
for Mountain Lion. I am very new to Cocoa, and this might be my first
project with Cocoa.
... Why?
Charles
On Aug 18, 2012, at 4:37 PM, Charles Srstka cocoa...@charlessoft.com wrote:
On Aug 18, 2012, at 4:26 PM, Commodore 64 salmankhi...@yahoo.com wrote:
I'd like to know how to how to write my own MissionControl/Exposè
replacement for Mountain Lion. I am very new to Cocoa, and this might be my
For items 1 and 2, start with the SonOfGrab sample app. Everything you need
to know about window contents is in there. I tweaked it heavily to make a
utility for getting live updates of windows on other Spaces for debugging.
(Alas, windows do not report their Space ID - a public but optional
On Aug 18, 2012, at 11:29 AM, Koen van der Drift koenvanderdr...@gmail.com
wrote:
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
25 matches
Mail list logo