Re: Memory Warnings

2014-10-07 Thread Quincey Morris
(reposted after editing for length) On Oct 7, 2014, at 22:12 , Gerriet M. Denkmann wrote: > Is there a way for the app to find out how much memory it is currently using? Here’s my take on this, which may be way off base: There’s really no practical way to answer such questions any more. The wa

Memory Warnings

2014-10-07 Thread Gerriet M. Denkmann
I have an app which sometimes receives: applicationDidReceiveMemoryWarning:. Is there some rule, how much Ram use is ok? Like: not more than x KB, or: not more than y % of total Ram? Is there a way for the app to find out how much memory it is currently using? Is there a way for the app to fin

Re: Questions on using a NSTextView as a source viewer.

2014-10-07 Thread Ken Thomases
On Oct 7, 2014, at 5:29 PM, Daryle Walker wrote: > 1. Although the text in the window expands vertically as needed, it never > does horizontally. Wrapping always happens when lines are too long, but it > adjusts as the width of the window is changed. How do I get “infinite” space > horizontall

Re: Responsive scrolling: prepareContentInRect: not called

2014-10-07 Thread Ken Thomases
On Oct 7, 2014, at 9:31 AM, Antonio Nunes wrote: > Wondering if anyone has an idea of why prepareContentInRect: is not called > for a view when responsive scrolling is enabled. > > We are using an NSScrollView subclass that overrides prepareContentInRect:. I would not expect -prepareContentInR

Efficient CVPixelBuffer display in a CALayer

2014-10-07 Thread Seth Willits
If I have an ARGB CVPixelBufferRef, what's the most efficient way to display it in a CALayer? The only officially supported formats for the CALayer.contents property are NSImage and CGImage, and both of those paths will end up copying the CVPixelBuffer's data on the CPU, and then upload the

Finding in a WebView

2014-10-07 Thread Daryle Walker
When I implemented source-viewing for my web-browser (as independent windows), I added the “for free” find capability, using the “inside the top of the scroll-view” mode. How can I implement something similar for WebView-s? When I looked over find-panels, I read mentions of the new API being abl

Re: Questions on using a NSTextView as a source viewer.

2014-10-07 Thread Daryle Walker
On Oct 7, 2014, at 6:29 PM, Daryle Walker wrote: > I implemented a new window XIB and controller class for my web-browsing > project. It’s for “View Source.” It’s active if the current page’s > WebDataSource object indicates it supports a text representation. The window > just contains a NSTex

Questions on using a NSTextView as a source viewer.

2014-10-07 Thread Daryle Walker
I implemented a new window XIB and controller class for my web-browsing project. It’s for “View Source.” It’s active if the current page’s WebDataSource object indicates it supports a text representation. The window just contains a NSTextView-wrapped-in-a-NSScrollView object provided by the Int

Re: iOS Category to match OS X category

2014-10-07 Thread Kevin Meaney
Thanks Jens, I've just implemented a different solution as I since found that CIFilter instance on iOS has a name read only property which I hadn't noticed. So instead I've replaced the array of filters in my filter chain object with an array of dictionaries. Each dictionary has a name and a fi

Re: iOS Category to match OS X category

2014-10-07 Thread Jens Alfke
> On Oct 7, 2014, at 1:09 AM, Kevin Meaney wrote: > > This category is not in any of the iOS frameworks as far as I can tell. So it > looks like the only way I can get the same behaviour on iOS is using > associated objects/references. That sounds reasonable. > I'm not comfortable with this

Responsive scrolling: prepareContentInRect: not called

2014-10-07 Thread Antonio Nunes
Hi, Wondering if anyone has an idea of why prepareContentInRect: is not called for a view when responsive scrolling is enabled. We are using an NSScrollView subclass that overrides prepareContentInRect:. When I turn on View Debugging->Show Responsive Scrolling Status during a debug session, th

Re: Displaying Sheets

2014-10-07 Thread Luther Baker
That was it! Thanks, -Luther On Tue, Oct 7, 2014 at 7:32 AM, Mike Abdullah wrote: > > > On 7 Oct 2014, at 13:29, Luther Baker wrote: > > > > I'd like to display a sheet but when I do, it isn't sliding down from the > > top of my window. It is just showing up. > > > > I am building a default D

Re: Displaying Sheets

2014-10-07 Thread Mike Abdullah
> On 7 Oct 2014, at 13:29, Luther Baker wrote: > > I'd like to display a sheet but when I do, it isn't sliding down from the > top of my window. It is just showing up. > > I am building a default Document based application and assigning the > Document.xib window to an IBOutlet I've created - in

Displaying Sheets

2014-10-07 Thread Luther Baker
I'd like to display a sheet but when I do, it isn't sliding down from the top of my window. It is just showing up. I am building a default Document based application and assigning the Document.xib window to an IBOutlet I've created - invoking "beginSheet" on that mainWindow with another temporary

iOS Category to match OS X category

2014-10-07 Thread Kevin Meaney
This is more of an objective-c question than Cocoa, but I'm getting no traction on the objective-c devforums discussion list. I've got a OSX Framework that I'm updating to to also work on iOS. In the Framework I take advantage of the name property added to the CIFilter class by the category CA