How to use NSEvent using AppleScript on Xcode?

NSEvent set var1 to current application's NSEvent's pressedMouseButtons() say var1 set var1 to current application's NSEvent's buttonNumber() say var1 First one works, but second one doesn...
more »

2017-08-05 17:08 (1) Answers

How to run app without storyboard?

New to Xcode 8 and Swift 3. Any help would be much appreciated. I've been doing as much research as possible but I'm still having trouble running my app without using the storyboard. Seems I get a black screen when I launch it in the simulator due to...
more »

2017-07-15 08:07 (2) Answers

Simple OSX app without using storyboards

I'm trying to learn Swift trough creating a simple OSX application. My sole purpose at this moment is to open a single window without using storyboards. My project contains 3 files right now. I didn't write most of it myself, I found it somewhere on ...
more »

2017-05-08 23:05 (0) Answers

How to present a scene from AppDelegate?

Is it possible to present a scene from AppDelegate? My AppDelegate implements a delegate function from an ad network library and I need to present a scene when that gets called. I tried using let transition = SKTransition.fadeWithDuration(2.0) le...
more »

2016-11-14 20:11 (1) Answers