WebView (Mac) Scroll - quick question

2011-12-12 Thread Ben
WebView for Mac development appears to be quite different than UIWebview for IOS. How do I get a notification (or delegate) method which fires when the scrollbar moves ? I see nothing of use in the WebView documentation. ___ Cocoa-dev mailing list (

Re: WebView (Mac) Scroll - quick question

2011-12-12 Thread Mike Abdullah
That depends on what you mean by "when the scrollbar moves". The user scrolls? Or they click a link which causes the page to scroll? Perhaps both? Note also that there's a dedicated webkit-sdk mailing list which these kind of questions are best targeted towards. On 12 Dec 2011, at 12:20, Ben wr

Re: Best way to manage double-clicked files?

2011-12-12 Thread C.W. Betts
Thank you! That was exactly what I was looking for. On Dec 10, 2011, at 6:00 PM, Lee Ann Rucker wrote: > Try the application delegate method application:openFile: - it gets called > before the NSDocument handling gets a shot at it. > > - Original Message - > From: "C.W. Betts" > To: "ju

Business as usual: Flipped context causing grief

2011-12-12 Thread Graham Cox
I'm drawing objects into a bitmap rep and a context created from it. The y axis extends downwards (i.e. it's flipped). Normal objects render correctly. Text is inverted. This problem keeps rearing its ugly head. I'm still not sure I really understand it. When I set up the context from the b

Re: WebView (Mac) Scroll - quick question

2011-12-12 Thread Ben
When the user scrolls. I wasn't sure if to post my query into the webkit-sdk mailing list or not. As UIWebview implemented UIScrollViewDelegate in IOS, I assumed the question was best directed to this forum, as I had hoped to find a Cocoa solution that had somehow eluded me. Thanks Mike On 12

Re: Web Kit - playing HTML5 video in a separate window

2011-12-12 Thread Jens Alfke
On Dec 9, 2011, at 9:23 PM, Nick wrote: > This is what I'd like to have - to be able to play video in a > window/fullscreen, preferably having my own movie controls (similar to > iPhone's ones). You’re going to have to do something like intercepting the click on the video, finding the URL of th

Re: Business as usual: Flipped context causing grief

2011-12-12 Thread Keary Suska
On Dec 12, 2011, at 4:04 PM, Graham Cox wrote: > I'm drawing objects into a bitmap rep and a context created from it. > > The y axis extends downwards (i.e. it's flipped). > > Normal objects render correctly. > > Text is inverted. > > > > This problem keeps rearing its ugly head. I'm still n

Re: Business as usual: Flipped context causing grief

2011-12-12 Thread Graham Cox
On 13/12/2011, at 12:00 PM, Keary Suska wrote: > IIRC, NSLayoutManager expects that the view it is drawing in is flipped It expects the CONTEXT it is drawing into is flipped, and in order to do that it asks the CONTEXT the value of -isFlipped. If the context is associated with a view, the view

Re: Business as usual: Flipped context causing grief

2011-12-12 Thread Keary Suska
On Dec 12, 2011, at 6:07 PM, Graham Cox wrote: > > On 13/12/2011, at 12:00 PM, Keary Suska wrote: > >> IIRC, NSLayoutManager expects that the view it is drawing in is flipped > > It expects the CONTEXT it is drawing into is flipped, and in order to do that > it asks the CONTEXT the value of -i

Re: Business as usual: Flipped context causing grief

2011-12-12 Thread Aki Inoue
Graham, +[NSGraphicsContext graphicsContextWithBitmapImageRep:] is a cover method of a more general, +[NSGraphicsContext graphicsContextWithGraphicsPort:flipped:]. You can create a CGBitmapContextRef out of the bitmap rep & pass to the latter method. Aki On 2011/12/12, at 17:07, Graham Cox wr

Re: Business as usual: Flipped context causing grief

2011-12-12 Thread Graham Cox
OK, that works, I get the desired result. Thanks - that confirms my understanding about the flippedness of the context and so on, which is good. So I have a question now about efficiency. I create a NSBitmapImageRep, and I let it allocate the buffer memory. In order to create a GCBitmapContext u

Our app can't store a simple key/value pair in iCloud. Any idea why?

2011-12-12 Thread G S
Hi all. I've configured our app for iCloud usage and push notifications with the appropriate entitlements, under a provisioning profile that is set up for these, and a developer profile that's associated with this provisioning profile. The application identifier matches what's specified in the pr

Re: why does this method return an id?

2011-12-12 Thread Matt Neuburg
On Sun, 11 Dec 2011 12:34:57 -0600, Charles Srstka said: >On Dec 11, 2011, at 10:58 AM, Matt Neuburg wrote: > >> There seems to be a small hole in my understanding of Objective-C. I sort of >> understand why alloc-init returns an id, but why do so many class method >> convenience instantiators

Re: Why does my app suddenly return nil for the version string?

2011-12-12 Thread Matt Neuburg
On Sun, 11 Dec 2011 19:05:00 -0800, G S said: >Turns out there's an Xcode bug behind this. Hard to imagine, I know. > >We don't use build numbers; just version numbers. I noticed that the >target summary's Version field was blank, but the Build field wasn't. >Swapping those states led Xcode to i