In my Cocoa app, I need to refer to another window. After searching about it a bit, it looks like that I need to use Apple scripts to do that. My question is that can I return the window of another app as a NSWindow from the Apple script to my Mac app. I've seen some Apple script samples, but not sure how to pass a value from the Apple script to the Cocoa app.
(We have a Mac touchscreen bought recently and there, in order for the touches to get detected in my unity app (through the SDK given for the Touch screen), I need to get that Unity Window and pass it to the touchscreen methods. I'm totally new to Mac development, so I can't figure out how I can pass another Window as a NSWindow to the touchscreen SDK)
Related
I have an android background, but am just learning how to build iPhone apps using swift. I am using the book Beginning iPhone Development with Swift 2: Exploring the iOS SDK.
Problem is that it refers to Buttons and such being in the Object Library and I don't have anything in my object library. I have clicked on the View as instructed.
I have a newly installed MacBook and am running Xcode 8.1, which is newer than the book's directions. It refers to iOS UIkit, but I don't know how to install this.
I did Single View Application under iPhone to get where I am. Can anyone point me to what I need to do? I am brand new to the Apple world entirely.
Aha! In the main window, I clicked on the storyboard and that allowed the Object Library to contain the view items, including buttons.
So, click on the storyboard in the main window, then click on the view in the IB.
I can now (since dec 2015) use Apple's Remote App, for iOS, as a remote control for apple tv4!
I am developing a tvos App. I can swipe on the Remote App to navigate between controls on my settings screen. So far so good.
But the gesture recognisers on my game screen does not recognise the swipes on the Remote App (but they do recognise swipes on Siri Remote).
Question: What should I do to capture swipes from the iOS Remote App?
You can't.
With tvOS 9.1 and v4.2.3 of the Remote app for iOS, the Control screen on the iOS app works the same as a generic remote (e.g. the Apple Remote that comes with the 3rd-generation Apple TV or a third party IR universal remote). Those remotes only support 4-way directional control, not gesture control. More generally, Remote v4.2.3 can only do with a 4th-gen Apple TV the same things it does with 3rd-gen Apple TV.
The Remote app translates the gestures you make on your iOS device into a 4-way directional command (or select/play/pause, fast-forward, or another of the few commands generic remotes support), then sends that command to the Apple TV. It doesn't pass touch inputs along to the Apple TV the way the Siri Remote does.
However, Apple has been talking to the press about possible future changes.
Directional "button" inputs, whether from an Apple Remote, third-party hardware remote, or the Remote iOS app, are UIPress events, just like the Select, Menu, and Play/Pause buttons on the Siri Remote. As such, you can handle them in pressesBegan:withEvent: or with the allowedPressTypes property of a tap gesture recognizer. You can even set up the latter in Interface Builder:
Note that swipes on the Siri remote don't count as directional button presses, so if you're doing swipe gesture recognizers and want a directional button press to do the same thing, you need to recognize both separately.
I'm an experienced iOS developer trying to develop my first Cocoa app for OSX.
When the app hits my breakpoints, the app window is no longer visible. Why not? I see the app icon in the dock, but it doesn't become visible when I click on it.
Is there a way to change this or a workaround? I'd like to see the state of my app as I debug. I'm guessing I'm not the only one.
I'm using Xcode 6 beta 6.
I'm currently developing an iPhone app with Xcode. Part of the app requires the morph (or tween) of one shape into another shape. I know that using Adobe Flash Pro CS6 I can export a 'shape tween' to an iOS app using the built in AIR. The problem is that it does not give me any Objective C code that I can use, just a compiled app. That app cannot be inserted into my development, or have items parsed into it.
The Mac app 'FlashCode', converts SWF into Xcode code, but doesn't yet support shape tweens.
Any ideas how to deal with this?
I am developing an application for Mac OS X. In this application, I need to implement "smart notification window". What I mean by this term.
Here some screenshots:
In the app I develop, such "smart notification" will be appear under system bar icon.
If you work on a Mac you might notice a similar windows.
Does anybody has some code tutorial or examples of such "windows" draw.
Working in XCode, Cocoa Environment.
See MAAttachedWindow from Matt Gemmel:
http://mattgemmell.com/source
You'll have to scroll down a bit...