iOS version check

2015-06-11 Thread Quincey Morris
There’s a particular API that’s broken in iOS 8 (AVSpeechUtterance.rate), but not broken in iOS 7, and fixed in iOS 9. Using Xcode 7, therefore, I get the iOS 9 simulator, which means different speech behavior running in the simulator from running on an actual device (still running 8.3). So I’m

Re: for case and if case (Swift 2)

2015-06-11 Thread Quincey Morris
On Jun 11, 2015, at 19:48 , Marco S Hyman wrote: > > switch test { Roland “maliciously” misused capitalization of types. ‘test’ is actually an enum type, not a variable of enum type, so this switch statement isn’t valid either. The example in the video is this: > for case .MyEnumCase (let va

Re: for case and if case (Swift 2)

2015-06-11 Thread Marco S Hyman
>> yes ‘=‘ instead of ‘==‘. I hit on that trying random things and don’t really >> understand it, an ‘=‘ in an if() test is something I’m having trouble >> getting my brain around. > > It’s not that strange. The statement contains an initializer (conceptually > 'let a = y.assocatedValue’), so

Re: for case and if case (Swift 2)

2015-06-11 Thread Roland King
> On 12 Jun 2015, at 09:14, Quincey Morris > wrote: > > On Jun 11, 2015, at 18:01 , Roland King wrote: >> >> yes ‘=‘ instead of ‘==‘. I hit on that trying random things and don’t really >> understand it, an ‘=‘ in an if() test is something I’m having trouble >> getting my brain around. > >

Re: for case and if case (Swift 2)

2015-06-11 Thread Quincey Morris
On Jun 11, 2015, at 18:01 , Roland King wrote: > > yes ‘=‘ instead of ‘==‘. I hit on that trying random things and don’t really > understand it, an ‘=‘ in an if() test is something I’m having trouble getting > my brain around. It’s not that strange. The statement contains an initializer (conce

Re: for case and if case (Swift 2)

2015-06-11 Thread Roland King
> On 12 Jun 2015, at 08:49, Roland King wrote: > > Trying out some of the new Swift 2 features for pattern matching (What’s New > In Swift around the 19m 35s + mark with Chris Lattner) but not having much > success. I have this in a playground > > enum test > { > cas

for case and if case (Swift 2)

2015-06-11 Thread Roland King
Trying out some of the new Swift 2 features for pattern matching (What’s New In Swift around the 19m 35s + mark with Chris Lattner) but not having much success. I have this in a playground enum test { case one case two( Int ) case t

3D file formats

2015-06-11 Thread Rick Mann
Preview and QuickLook are able to show me the .obj files my company creates. But neither SceneKit nor Xcode seem to be able to open them, at least not directly. OS X 10.10.3 (for eventual use on iOS). Is there any way to leverage the support I see in Preview/QuickLook in my own apps? Is this e

Re: Playground

2015-06-11 Thread Quincey Morris
On Jun 11, 2015, at 12:18 , David Grant wrote: > > So I followed your instructions below, and the playground opened and I waited > very very patiently for the wheel to stop spinning as it said “running > playground”. Then I was met with the following pop up. > > "Failed to launch iOS stub for

Re: Playground

2015-06-11 Thread David Grant
So I followed your instructions below, and the playground opened and I waited very very patiently for the wheel to stop spinning as it said “running playground”. Then I was met with the following pop up. "Failed to launch iOS stub for playground execution: error: attach failed: lost connection.

Re: Playground

2015-06-11 Thread Quincey Morris
On Jun 11, 2015, at 10:58 , David Grant wrote: > > Playground execution terminated because the process stopped unexpectedly. Here’s what I would do: 1. Close all projects and any playground windows you have open. 2. Go to the Projects window (that’s been split out from the organizer), and del

Re: IOS focus issue when presenting a view controller from a new storyboard

2015-06-11 Thread Alex Zavatone
Aaaand now it's working perfectly. Hope someone finds that little chunk of code useful. Cheers, Alex Zavatone On Jun 11, 2015, at 1:48 PM, Alex Zavatone wrote: > I'm back into my modular design phase where I build one part of the iOS > application in one storyboard, then another part in anot

Re: Playground

2015-06-11 Thread David Grant
Tried Editor —> Execute Playground received this: Playground execution terminated because the process stopped unexpectedly. > On Jun 10, 2015, at 10:42 PM, Quincey Morris > wrote: > > On Jun 10, 2015, at 20:51 , David Grant > wrote: >> >> import UIKit >>

IOS focus issue when presenting a view controller from a new storyboard

2015-06-11 Thread Alex Zavatone
I'm back into my modular design phase where I build one part of the iOS application in one storyboard, then another part in another and just do a presentViewController with the root view or nav controller from the storyboard that contains it. This works almost as expected except for one thing.

Re: Another NSTreeController/NSOutlineView/NSIndexPath Question

2015-06-11 Thread Gordon Apple
If you are going to use a data hierarchy, then use a data hierarchy. Look like you are attempting to use a linear array, which won¹t work. You need arrays of arrays and you bind the tree controller to the root array. On 6/10/15 10:45 PM, "cocoa-dev-requ...@lists.apple.com" wrote: > Hi All, Is t