Re: Use WKSessionFile as Data for AVAudioPlayer?

2017-02-08 Thread Eric E. Dolecki
UPDATE. Fixed. I bagged on sendFile and instead I am using sendMessage. The problem with that is the iOS app needs to be open, but it plays the message for me. *Watch:* let data = NSData(contentsOf: saveURL as! URL) sendAudioFile(file: data!) *iOS:* func session(_ session: WCSession,

Re: Mobile Cross Platform Solutions

2017-02-08 Thread Jens Alfke
> On Feb 8, 2017, at 3:34 AM, Dave wrote: > > I’ve been asked to look at doing a Mobile App for a museum, basically the App > needs to show info (text, pictures and movies) for each exhibit. I’m > wondering the best way to make it work for iOS, Android and Windows

Re: Use WKSessionFile as Data for AVAudioPlayer?

2017-02-08 Thread Eric Dolecki
Ignore that comment. If love to know how to use the actual file though.  Get Outlook for iOS On Wed, Feb 8, 2017 at 12:35 PM -0500, "Jens Alfke" wrote: On Feb 8, 2017, at 5:48 AM, Eric E. Dolecki wrote:                 try self.player =

What generates NSURLErrorUnsupportedURL?

2017-02-08 Thread Steve Christensen
I am occasionally seeing a NSURLErrorUnsupportedURL (unsupported URL) error being returned by download tasks on a background NSURLSession, on iOS. Before you ask, the URL (https://…) is properly formed, [NSURL URLWithString:] returns a non-nil URL, and as an extra manual check I did an online

Re: Use WKSessionFile as Data for AVAudioPlayer?

2017-02-08 Thread Jens Alfke
> On Feb 8, 2017, at 5:48 AM, Eric E. Dolecki wrote: > > try self.player = AVAudioPlayer(contentsOf: file.fileURL!) Why are you trying to load it into memory? You want to avoid that if possible with media data. Just initialize AVAudioPlayer with the URL

Re: What generates NSURLErrorUnsupportedURL?

2017-02-08 Thread Jens Alfke
> On Feb 8, 2017, at 10:38 AM, Steve Christensen wrote: > > The time between when the request is made and when it completes with an error > might be a minute or so, so the framework is immediately bailing on the > request. I'm wondering what part of the process generates the

Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
I have the simplest of Document-based macOS apps created in Xcode 8.2.3. In the Document.makeWindowControllers method, I set my ViewController's representedObject to the document. override func makeWindowControllers() { let storyboard = NSStoryboard(name: "Main", bundle: nil) let

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 17:08 , Quincey Morris > wrote: > > On Feb 8, 2017, at 16:58 , Rick Mann wrote: >> >>> On Feb 8, 2017, at 16:50 , Quincey Morris >>> wrote: >>> >>> On Feb 8, 2017, at

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 16:50 , Quincey Morris > wrote: > > On Feb 8, 2017, at 15:44 , Rick Mann wrote: >> >> I bind an Array Controller in the View Controller scene to >> ViewController.self.representedObject.managedObjectContext. >

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Quincey Morris
On Feb 8, 2017, at 16:58 , Rick Mann wrote: > >> On Feb 8, 2017, at 16:50 , Quincey Morris >> > > wrote: >> >> On Feb 8, 2017, at 15:44 , Rick Mann >

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Quincey Morris
On Feb 8, 2017, at 15:44 , Rick Mann wrote: > > I bind an Array Controller in the View Controller scene to > ViewController.self.representedObject.managedObjectContext. Using what binding key? > Note that I've also tried setting the Array Controller's content binding to

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Quincey Morris
On Feb 8, 2017, at 17:17 , Rick Mann wrote: > > it's the Managed Object Context that's bound to > "self.representedObject.managedObjectContext". “self.” is unnecessary. AFAIK it’s just voodoo arising from attempts to work around some bug or confusion several years ago.

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Ken Thomases
On Feb 8, 2017, at 5:44 PM, Rick Mann wrote: > > 2017-02-08 15:39:41.178728 PromotionalChargeManager[51621:17330300] [General] > Cannot perform operation without a managed object context > 2017-02-08 15:39:41.181165 PromotionalChargeManager[51621:17330300] [General] > (

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 17:41 , Quincey Morris > wrote: > > On Feb 8, 2017, at 17:17 , Rick Mann wrote: >> >> it's the Managed Object Context that's bound to >> "self.representedObject.managedObjectContext". > > “self.” is

Re: What generates NSURLErrorUnsupportedURL?

2017-02-08 Thread Greg Parker
> On Feb 8, 2017, at 2:44 PM, Jens Alfke wrote: > >> On Feb 8, 2017, at 10:38 AM, Steve Christensen wrote: >> >> The time between when the request is made and when it completes with an >> error might be a minute or so, so the framework is immediately

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 18:26 , Ken Thomases wrote: > > On Feb 8, 2017, at 5:44 PM, Rick Mann wrote: >> >> 2017-02-08 15:39:41.178728 PromotionalChargeManager[51621:17330300] >> [General] Cannot perform operation without a managed object context >>

Re: What generates NSURLErrorUnsupportedURL?

2017-02-08 Thread Steve Christensen
Thanks Greg (and Jens). The URLs are coming from a server that the app uses. I haven't seen these errors in the past so somebody was probably doing some tinkering and messed something up. > On Feb 8, 2017, at 7:16 PM, Greg Parker wrote: > >> On Feb 8, 2017, at 2:44 PM,

Re: ICNS file behaviour on Retina Macs

2017-02-08 Thread Arjan van Leeuwen
Hi, It will use the non-retina 32x32 for 16x16@2x, etc, so your icons will not look pixelated if you omit the @2x icons. If you're worried about the file size of your .icns file exploding, I've created a small utility that can be used in combination with png utilities like pngquant to reduce the

Re: Use WKSessionFile as Data for AVAudioPlayer?

2017-02-08 Thread Eric E. Dolecki
When I try the following I get a "OSStatus error 2003334207" func session(_ session: WCSession, didReceive file: WCSessionFile) { DispatchQueue.main.async { self.versionLabel.text = "We got a real audio file." self.versionLabel.textColor = UIColor.blue

Mobile Cross Platform Solutions

2017-02-08 Thread Dave
Hi, I’ve been asked to look at doing a Mobile App for a museum, basically the App needs to show info (text, pictures and movies) for each exhibit. I’m wondering the best way to make it work for iOS, Android and Windows Phone (maybe). The content can be formatted as HTML and I’m wondering if it