> On 29 Sep 2015, at 07:02, Gerriet M. Denkmann wrote:
>
> When I download a file using NSURLSession downloadTaskWithRequest the file
> ends up in exactly the wrong volume.
> Which means: I have to copy it to the right one, which, for really big files,
> can take some non-trivial time.
>
> Is
That is to say use the data task delegate methods to receive data and write it
where you want it?
Sent from my iPhone
> On Sep 29, 2015, at 5:39 PM, Mike Abdullah wrote:
>
>
>> On 29 Sep 2015, at 07:02, Gerriet M. Denkmann wrote:
>>
>> When I download a file using NSURLSession downloadTaskW
> On 29 Sep 2015, at 10:25, dangerwillrobinsondan...@gmail.com wrote:
>
> That is to say use the data task delegate methods to receive data and write
> it where you want it?
Yep, fire up a data task (with delegate, not completion handler). Use
-URLSession:dataTask:didReceiveResponse:completion
I have a custom NSView subclass (let's call it "container"). The view contains
many subviews and the subviews can have two states: expanded and collapsed.
When one of the subviews is expanded, it reveals an editable text field, when
the subview is collapsed, the field is removed.
The container ne
So at that event or at the beginning of it resign first responder and manually
set the next responder.
You may need some logic to decide what is the next responder.
You may also need to ask the window to recalculate the next responder chain in
it.
Sent from my iPhone
> On Sep 29, 2015, at 7:
> On Sep 28, 2015, at 9:54 PM, Gerriet M. Denkmann wrote:
>
> NSURLSessionDelegate and NSURLSessionTaskDelegate methods get called (as
> expected) but none of the NSURLSessionDownloadDelegate methods ever get
> called.
Your NSURLSessionDataDelegate should be getting called, with data coming f
One of my projects is a System Preference Pane. With 10.11, Xcode's debugger
can't debug it as I get a "can't attach to System Preferences because of
System Integrity Protection".
How can I debug my prefpane under 10.11, as I have done in every OS back to
10.3?
_
I’m trying to implement a collection with dynamically sized cells. The WWDC
session from 2014 “What’s New in Table and Collection Views” talks about how to
do this by:
• Use autolayout constraints to set the height of the cell based on the content
size of the subviews.
• Set the estimatedItemSi
Hello all,
My project is coming along. I'm now to the point where I want to load data from
a URL into a WebView, but there's surprisingly little (read: next to nothing)
about doing this in an app on the Mac. That or I'm googling the wrong terms.
Anyway, what I'm running into are the following:
Hi Doug! Funny you mention this, I was trying and failing to do the same thing
just tonight.
Thing is, I’ve done it before and have a toy implementation on GitHub[0] to
prove it! Not that that was helping me just now, of course, but perhaps a link
to that repo can help you out?
There are addi
> On Sep 29, 2015, at 7:03 PM, Alex Hall wrote:
>
> 1. What class do I want to use when making an outlet for my web view UI
> element?
Don’t use a custom object. There should be a WebView item in the Interface
Builder object palette already.
> but "WebView" gives me an error: "use of undecla
> On 30 Sep 2015, at 10:03, Alex Hall wrote:
>
> Hello all,
> My project is coming along. I'm now to the point where I want to load data
> from a URL into a WebView, but there's surprisingly little (read: next to
> nothing) about doing this in an app on the Mac. That or I'm googling the
> wro
> On Sep 29, 2015, at 8:15 PM, Roland King wrote:
>
> is WebView the go-to guy these days or is it WKWebView, which comes with all
> the things you love about the Safari browsing experience built-in? That seems
> pretty easy to use. There was a WWDC video on it if I remember correctly.
WKWeb
Hello,
it’s been a while :-)
I started to rewrite a Plugin from Carbon to Cocoa and I have some trouble with
the NSColorPane.
The colorPane opens, I can choose any color, change the mode etc, but I can
close it only with the ESC key.
None of the boxes in the title bar react on a click.
Neither t
What’s the host app? It sounds like something’s going wrong with event
dispatching. Or, you’re not using a modal runloop mode, are you?
—Jens
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comment
The lack of native DOM API is the head scratcher at first.
It leaves you with a message passing API to use the JSContext Objective-C
JavaScript API.
Then you realize it's a performance and security thing and it's pretty much the
same as the Safari Extensions API . Web views in WKWebView are ac
> On Sep 29, 2015, at 10:35 PM, dangerwillrobinsondan...@gmail.com wrote:
>
> Then you realize it's a performance and security thing and it's pretty much
> the same as the Safari Extensions API . Web views in WKWebView are actually a
> separate process pool you don't own.
> So you can translat
> On Sep 28, 2015, at 6:07 PM, dangerwillrobinsondan...@gmail.com wrote:
>
> If not, NSImage has a nice API for drawing to the image context. Then you
> just have an NSImage. Let AppKit do the work. It will cache the drawing of
> that image until you change it.
That would be trading CPU for R
18 matches
Mail list logo