Re: How to Versions Browser when document won't open?

2014-03-21 Thread Jerry Krinock
It looks like we have a solution to the problem of the user not being able to restore a corrupt document from Versions Browser because the document is corrupt, and so she can’t open it, and so she can’t File > Revert to > Browse All Versions. The solution is: • Override -[NSDocument openDocume

Simulating sublayers in CATiledLayer

2014-03-21 Thread Remco Poelstra
Hi, I'm working on an iOS app which needs to draw paths. Drawing is performed in layers, each layer having its own color. Some paths add (opaque) content, while some paths remove content (i.e. draw in a clear color). Content removal should only happen on a per layer basis. This model fits exact

Re: WebView drawRect

2014-03-21 Thread Leonardo
I understand the point. I have added the view to another view. It works. Anyway, how can I flip horizontally the webView? I can't act from within its drawRect method. I can't act from within its frameView's drawRect method because I can't replace its frameView. I can't flip its superview from its d

Re: Simulating sublayers in CATiledLayer

2014-03-21 Thread David Duncan
On Mar 21, 2014, at 3:53 AM, Remco Poelstra wrote: > Hi, > > I'm working on an iOS app which needs to draw paths. Drawing is performed in > layers, each layer having its own color. Some paths add (opaque) content, > while some paths remove content (i.e. draw in a clear color). Content removal

Re: WebView drawRect

2014-03-21 Thread Jens Alfke
On Mar 21, 2014, at 9:01 AM, Leonardo wrote: > Anyway, how can I flip horizontally the webView? Assign it a CALayer, and apply a transform to the layer. It’ll even do the animation for you. —Jens smime.p7s Description: S/MIME cryptographic signature __

Re: WebView drawRect

2014-03-21 Thread Mike Abdullah
On 21 Mar 2014, at 18:50, Jens Alfke wrote: > > On Mar 21, 2014, at 9:01 AM, Leonardo wrote: > >> Anyway, how can I flip horizontally the webView? > > Assign it a CALayer, and apply a transform to the layer. It’ll even do the > animation for you. WebViews don’t officially support being lay

Re: WebView drawRect

2014-03-21 Thread Kyle Sluder
On Fri, Mar 21, 2014, at 11:50 AM, Jens Alfke wrote: > > On Mar 21, 2014, at 9:01 AM, Leonardo wrote: > > > Anyway, how can I flip horizontally the webView? > > Assign it a CALayer, and apply a transform to the layer. It’ll even do > the animation for you. Unless WebView has some special dispe

Re: WebView drawRect

2014-03-21 Thread Jens Alfke
On Mar 21, 2014, at 12:14 PM, Kyle Sluder wrote: > Unless WebView has some special dispensation that I don't know about, > assigning layers to views and mutating a view's layer are not supported > operations. OK, then nest the WebView in a custom NSView and transform that view’s layer. Same ef

Re: WebView drawRect

2014-03-21 Thread Leonardo
Thank you! It works. Yes, I put just HTML code into the WebView. And since the HTML code could represent everything as graphics, text, tables... I have to give to that box, the same options as well as all the other objects, thus even flip H and flip V. The layer did the trick. I have just put the W

Re: Simulating sublayers in CATiledLayer

2014-03-21 Thread Remco Poelstra
> Op 21 mrt. 2014 om 17:28 heeft David Duncan het > volgende geschreven: > > >> On Mar 21, 2014, at 3:53 AM, Remco Poelstra wrote: >> >> Hi, >> >> I'm working on an iOS app which needs to draw paths. Drawing is performed in >> layers, each layer having its own color. Some paths add (opaque