|
Re: How to get DOMDocument from WkWebView
I do the same thing (in an app I've been tinkering with for years), but it's a dead end. WkWebView runs the WebView in a separate process, for security reasons, which means its DOM objects are
I do the same thing (in an app I've been tinkering with for years), but it's a dead end. WkWebView runs the WebView in a separate process, for security reasons, which means its DOM objects are
|
By
Jens Alfke
·
#596
·
|
|
Re: How to get DOMDocument from WkWebView
In short, you can’t. WkWebView does not permit direct access to the DOM or expose how the DOM is parsed internally. You have some limited access by being able to inject JavaScript and execute
In short, you can’t. WkWebView does not permit direct access to the DOM or expose how the DOM is parsed internally. You have some limited access by being able to inject JavaScript and execute
|
By
Keary Suska
·
#595
·
|
|
How to get DOMDocument from WkWebView
WebView is sort of deprecated.
“In apps that run in OS X 10.10 and later, use the WKWebView class instead of using WebView”
But: how can I get the DOMDocument of a WkWebView?
I navigate (using
WebView is sort of deprecated.
“In apps that run in OS X 10.10 and later, use the WKWebView class instead of using WebView”
But: how can I get the DOMDocument of a WkWebView?
I navigate (using
|
By
Gerriet M. Denkmann
·
#594
·
|
|
Handling of (shift-)cmd-backquote
Applications on macOS respond to command-backquote and
shift-command-backquote by bringing one of the application's non-frontmost
windows to the front. I have these questions about how this works:
1.
Applications on macOS respond to command-backquote and
shift-command-backquote by bringing one of the application's non-frontmost
windows to the front. I have these questions about how this works:
1.
|
By
Richard Kennaway
·
#593
·
|
|
Re: Can I advantage of Swift availability features in a UITableVIewDelegate?
Thank you, Bernie; you're absolutely right.
All that is actually needed is to implement tableView(_:editActionsForRowAt:) and tableView(_:trailingSwipeActionsConfigurationForRowAt:) [and the
Thank you, Bernie; you're absolutely right.
All that is actually needed is to implement tableView(_:editActionsForRowAt:) and tableView(_:trailingSwipeActionsConfigurationForRowAt:) [and the
|
By
Rick Aurbach
·
#592
·
|
|
Re: Can I advantage of Swift availability features in a UITableVIewDelegate?
Rick Aurbach:
If I understand you correctly, you are asking whether you can wrap entire function implementations inside availability guards, vs just a section of code within a function.
I suspect
Rick Aurbach:
If I understand you correctly, you are asking whether you can wrap entire function implementations inside availability guards, vs just a section of code within a function.
I suspect
|
By
Bernie Maier
·
#591
·
|
|
Can I advantage of Swift availability features in a UITableVIewDelegate?
I am working on an app which I would like to support 10.x for the next release. The problem I have is in a UITableViewDelegate:
I have two actions which I'd like to implement for cells. In 10.x, I
I am working on an app which I would like to support 10.x for the next release. The problem I have is in a UITableViewDelegate:
I have two actions which I'd like to implement for cells. In 10.x, I
|
By
Rick Aurbach
·
#590
·
|
|
Re: Can I Generate a Segue This Way?
You might need to verify that “user interaction” is enabled for the label (which, if I recall correctly, it is not by default).
b
You might need to verify that “user interaction” is enabled for the label (which, if I recall correctly, it is not by default).
b
|
By
Ben Kennedy
·
#589
·
|
|
Can I Generate a Segue This Way?
I have a situation where I want a user tap on a UILabel to generate a segue. (Yes, it sounds a bit strange, but it makes sense in context.)
Working with a storyboard, I add a Tap Gesture Recognizer,
I have a situation where I want a user tap on a UILabel to generate a segue. (Yes, it sounds a bit strange, but it makes sense in context.)
Working with a storyboard, I add a Tap Gesture Recognizer,
|
By
Rick Aurbach
·
#588
·
|
|
Re: Replacement for Launch Services API
You can use the Service Management framework to add items to open at login (though they don't appear in System Preferences > Users & Groups > Login Items, which is a pet peeve of mine). See this
You can use the Service Management framework to add items to open at login (though they don't appear in System Preferences > Users & Groups > Login Items, which is a pet peeve of mine). See this
|
By
Jon Gotow
·
#587
·
|
|
Replacement for Launch Services API
Is there a replacement for LSSharedFileListCreate, LSSharedFileListInsertItemURL &c that have been
deprecated in
the latest SDKs? Or is there another way to add something to the Finder's sidebar or to
Is there a replacement for LSSharedFileListCreate, LSSharedFileListInsertItemURL &c that have been
deprecated in
the latest SDKs? Or is there another way to add something to the Finder's sidebar or to
|
By
Sak Wathanasin
·
#586
·
|
|
Re: Repeating timer firing way to fast
Thankyou both for your replies. I'm as sure as I can be that I'm not creating multiple timers, but I certainly checked for that. I appreciate that this is probably not the best design, due to the
Thankyou both for your replies. I'm as sure as I can be that I'm not creating multiple timers, but I certainly checked for that. I appreciate that this is probably not the best design, due to the
|
By
Jonathan Taylor
·
#585
·
|
|
Re: Crash with "illegal opcode" - how to debug this issue?
No other response so far…
That particular crash is just one example. There are numerous crash reports with the same basic crash, but not always in a CATransaction callback, though that is a very
No other response so far…
That particular crash is just one example. There are numerous crash reports with the same basic crash, but not always in a CATransaction callback, though that is a very
|
By
Graham Cox
·
#584
·
|
|
Re: Crash with "illegal opcode" - how to debug this issue?
And that the block isn't being deallocated prematurely somehow.
- Jon
And that the block isn't being deallocated prematurely somehow.
- Jon
|
By
Jon Gotow
·
#583
·
|
|
Re: Crash with "illegal opcode" - how to debug this issue?
Graham - did you ever get a response?
This looks to me like you are doing an animation which has completed and is trying to call back to your completion block. For some reason the completion block is
Graham - did you ever get a response?
This looks to me like you are doing an animation which has completed and is trying to call back to your completion block. For some reason the completion block is
|
By
Jack Brindle
·
#582
·
|
|
Crash with "illegal opcode" - how to debug this issue?
Hi all,
We’ve received a number of reports from users of a crash due to a SIGILL as follows:
Exception Type: SIGILL
Exception Codes: ILL_ILLOPC at 0x7fff32837454
Crashed Thread: 0
Thread 0
Hi all,
We’ve received a number of reports from users of a crash due to a SIGILL as follows:
Exception Type: SIGILL
Exception Codes: ILL_ILLOPC at 0x7fff32837454
Crashed Thread: 0
Thread 0
|
By
Graham Cox
·
#581
·
|
|
Re: Repeating timer firing way to fast
It seems to me that this could be regarded as a bug in your design. The consequence of blocking, at a higher conceptual level, is that it destroys the concept of timing which is essential to your
It seems to me that this could be regarded as a bug in your design. The consequence of blocking, at a higher conceptual level, is that it destroys the concept of timing which is essential to your
|
By
Quincey Morris
·
#580
·
|
|
Re: Repeating timer firing way to fast
Not knowing how your code is structured, this may be a dumb question, but just to check:
Are you certain that you're not creating multiple timers somehow? I've mistakenly done this when creating
Not knowing how your code is structured, this may be a dumb question, but just to check:
Are you certain that you're not creating multiple timers somehow? I've mistakenly done this when creating
|
By
Jon Gotow
·
#579
·
|
|
Repeating timer firing way to fast
Hi all,
I’ve been trying to figure out what happened on an overnight run of the code that drives our scientific experiment, and I’m seeing logs that imply that a timer has been firing much more
Hi all,
I’ve been trying to figure out what happened on an overnight run of the code that drives our scientific experiment, and I’m seeing logs that imply that a timer has been firing much more
|
By
Jonathan Taylor
·
#578
·
|
|
Re: The Correct Place to Migrate my NSDocument
I’m going to mark this as working now:
Set my DocumentController subclass as the main shared NSDocumentController
func applicationWillFinishLaunching(_ notification: Notification) {
_ =
I’m going to mark this as working now:
Set my DocumentController subclass as the main shared NSDocumentController
func applicationWillFinishLaunching(_ notification: Notification) {
_ =
|
By
Bill Pitcher
·
#577
·
|