Swap array values at specific indices?
Question or problem in the Swift programming language: I’m creating asynchronous NSURLConnections for images based off of an array of dictionaries, each with their own image URL:
Continue ReadingQuestion or problem in the Swift programming language: I’m creating asynchronous NSURLConnections for images based off of an array of dictionaries, each with their own image URL:
Continue ReadingQuestion or problem in the Swift programming language: I have been learning Swift language for a while, I am stuck with the one of the basic question, i.e. what is the basic difference between the file templates of a Cocoa Touch Class and a normal Swift class? Can some one provide any basic difference along […]
Continue ReadingQuestion or problem in the Swift programming language: I have been working on a Cocoa OSX project in swift that requires the use of keyboard input to preform an action. On keydown i want to move an object across the window, but stop the object as soon as the key is let up. I have […]
Continue ReadingQuestion or problem in the Swift programming language: Working in playground with Swift 3.0 I have this code:
Continue ReadingQuestion or problem in the Swift programming language: I have an NSStatusItem with a custom view that implements the NSDraggingDestination protocol. However, dragging and dropping only works if the status item was clicked / activated at least once. I want the custom view to accept drops regardless.
Continue ReadingQuestion or problem in the Swift programming language: I have a statusbar application, which runs in the menu bar. Therefore I set Application is agent (UIElement) to true in the info.plst. That results in no dock icon and no menu bar for my application.
Continue ReadingQuestion or problem in the Swift programming language: I’m trying to make a editable text region in a NSWindow. So far I can make a window and add a text field – but when I select it and type characters the characters are echoed in the shell and NOT the text area.
Continue ReadingQuestion or problem in the Swift programming language: I have built an app that includes a WKWebView, and the website that the web view loads supports multiple languages. How can I change the Accept-Language header in a WKWebView, or other HTTP headers for that matter?
Continue ReadingQuestion or problem in the Swift programming language: I have a NSTextView field which filters a NSTable table as user types in the input. I have successfully implemented table filtering.
Continue ReadingQuestion or problem in the Swift programming language: I want to programmatically trigger a ‘click’ event on my Safari Extension toolbarItem so that my custom popover appears after something happens on the webpage. I’m using the new Xcode extension IDE and have built my popover using interface builder. All of the answers on StackOverflow currently […]
Continue Reading