Re: How to Write MissionControl/Expose Replacement

2012-08-18 Thread Commodore 64
On Aug 18, 2012, at 11:08 PM, "Glenn L. Austin" wrote: > On Aug 18, 2012, at 4:48 PM, Commodore 64 wrote: > >> Because MissionControl is not spatially stable. The windows keep moving >> around and you always have to search for it visually. Its useless for a >> power user. > > Which window

Re: How to Write MissionControl/Expose Replacement

2012-08-18 Thread Commodore 64
On Aug 18, 2012, at 11:08 PM, "Glenn L. Austin" wrote: > On Aug 18, 2012, at 4:48 PM, Commodore 64 wrote: > >> Because MissionControl is not spatially stable. The windows keep moving >> around and you always have to search for it visually. Its useless for a >> power user. > > Which windows

Re: How to Write MissionControl/Expose Replacement

2012-08-18 Thread Glenn L. Austin
On Aug 18, 2012, at 4:48 PM, Commodore 64 wrote: > Because MissionControl is not spatially stable. The windows keep moving > around and you always have to search for it visually. Its useless for a > power user. Which windows, what what do *you* mean by "spatially stable?" If you mean that t

Re: stripped down webview

2012-08-18 Thread Jens Alfke
On Aug 18, 2012, at 11:29 AM, Koen van der Drift 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 >> -setUserStyleSheetL

Re: How to Write MissionControl/Expose Replacement

2012-08-18 Thread Lee Ann Rucker
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 d

Re: How to Write MissionControl/Expose Replacement

2012-08-18 Thread Commodore 64
On Aug 18, 2012, at 4:37 PM, Charles Srstka wrote: > On Aug 18, 2012, at 4:26 PM, Commodore 64 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. > > ... W

Re: How to Write MissionControl/Expose Replacement

2012-08-18 Thread Charles Srstka
On Aug 18, 2012, at 4:26 PM, Commodore 64 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 ___ Coc

Re: Calculating row heights for view-based table rows, on re-use throws error

2012-08-18 Thread Erik Stainsby
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 wrote: >> My expectation is that I ought to be able to clear the table (iterating >> through the rows and applying -

How to Write MissionControl/Expose Replacement

2012-08-18 Thread Commodore 64
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). Whe

Re: stripped down webview

2012-08-18 Thread Evadne Wu
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 wrote: > Is there a similar way to inject an external javascript.js file into my > webView? I think I can u

Re: stripped down webview

2012-08-18 Thread Koen van der Drift
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 wrote: > > On Aug 18, 2012, at 3:26 PM, Matt Patenaude wrote: > >> Ah! Your problem is URLWit

Re: stripped down webview

2012-08-18 Thread Koen van der Drift
On Aug 18, 2012, at 3:26 PM, Matt Patenaude 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 admin requests or moderat

Re: stripped down webview

2012-08-18 Thread Matt Patenaude
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 wrote: > > On Aug 18, 2012, at 2:46 PM, Matt Patenaude wrote: > >> User stylesheets should work just fine, so you should try to figure out >> what's

Re: stripped down webview

2012-08-18 Thread Koen van der Drift
On Aug 18, 2012, at 2:46 PM, Matt Patenaude 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 generate a > new prefere

Re: stripped down webview

2012-08-18 Thread Matt Patenaude
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]

Re: stripped down webview

2012-08-18 Thread Koen van der Drift
On Aug 18, 2012, at 1:40 PM, Kyle Sluder 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 > -setUserStyleSheetLocation:. You

Re: help indexer or hiutil help

2012-08-18 Thread Ben Kennedy
On 18 Aug 2012, at 10:32 am, Matt Neuburg 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. Anchors have never

Re: stripped down webview

2012-08-18 Thread Kyle Sluder
On Aug 18, 2012, at 4:24 AM, Koen van der Drift 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 sta

Re: help indexer or hiutil help

2012-08-18 Thread Matt Neuburg
On Thu, 16 Aug 2012 20:46:17 -0500, Shane said: >On Fri, Aug 10, 2012 at 4:12 PM, Shane > 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 the >> MyHelp.help bundle, I can't because its grayed out. Any ideas? >>

Re: stripped down webview

2012-08-18 Thread Jens Alfke
On Aug 18, 2012, at 8:26 AM, Steve Christensen 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 directly in t

Re: How to (slowly) rotate a view

2012-08-18 Thread Matt Neuburg
On Mon, 06 Aug 2012 00:11:39 +0700, "Gerriet M. Denkmann" 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 > subclass of U

Re: loading UIView in correct orientation

2012-08-18 Thread Matt Neuburg
On Fri, 03 Aug 2012 23:22:17 +0700, "Gerriet M. Denkmann" 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 is in Por

Re: rotating UIView without changing size

2012-08-18 Thread Matt Neuburg
On Sat, 04 Aug 2012 00:39:43 +0700, "Gerriet M. Denkmann" 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 addSubview: self.

Re: stripped down webview

2012-08-18 Thread Steve Christensen
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 wrote: > > On Aug 18, 2012, at 7:24 AM, K

Re: Calculating row heights for view-based table rows, on re-use throws error

2012-08-18 Thread Fritz Anderson
On 17 Aug 2012, at 9:15 PM, Erik Stainsby 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. > > > - (CGFloat)tableV

Re: Apple Aperture-like look & feel

2012-08-18 Thread Steven Woolgar
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: /System/Library/PrivateFramewor

Re: stripped down webview

2012-08-18 Thread Koen van der Drift
On Aug 18, 2012, at 7:24 AM, Koen van der Drift 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? > Answering to

stripped down webview

2012-08-18 Thread Koen van der Drift
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 (Co