Re: Modify JSON in Swift

2015-11-07 Thread Roland King
Quincey explained why it doesn’t work, value semantics run deep and consistent in Swift. What you could do if you wanted, after messing with images, put it back into the json dictionary again, after your for var image in .. code json[ “images” ] = images now you have modified json to have a

Re: Modify JSON in Swift

2015-11-07 Thread Roland King
> On 7 Nov 2015, at 20:48, Roland King wrote: > > Quincey explained why it doesn’t work, value semantics run deep and > consistent in Swift. > > What you could do if you wanted, after messing with images, put it back into > the json dictionary again, after your for var image

Re: Trouble w/ key-value binding validation

2015-11-07 Thread Luc Van Bogaert
> On 07 Nov 2015, at 01:56, Quincey Morris > wrote: > > On Nov 6, 2015, at 15:23 , Luc Van Bogaert > wrote: >> >> In a tableview with a content binding and a value binding on the table cell >> view

Re: Trouble w/ key-value binding validation

2015-11-07 Thread Luc Van Bogaert
> On 07 Nov 2015, at 10:09, Luc Van Bogaert wrote: > >> On 07 Nov 2015, at 01:56, Quincey Morris >> > > wrote: >> >> On Nov 6, 2015, at 15:23 , Luc Van Bogaert >

Re: Multiple simultaneous UIAlertControllers

2015-11-07 Thread Carl Hoefs
On Nov 6, 2015, at 3:06 PM, Graham Cox wrote: > >> On 6 Nov 2015, at 10:58 AM, Carl Hoefs >> wrote: >> >> (As a general thought, though, it would appear that UIAlertController >> should be a singleton app-wide, and it should manage its

Fade when changing window's rootViewController possible?

2015-11-07 Thread Diederik Meijer
Dear list, Is it possible to change an iOS app window’s rootViewController at runtime and have a fade animation between the two states happen? Obviously there is no modal or push presentation, the view is just replaced by a new one. For this reason a fade between the two would be nice. This

Re: runOnMainQueueWithoutDeadlocking and all its evils.

2015-11-07 Thread Mike Abdullah
In my experience, the main issue is on OS X. If you ever display a modal window, that runs the run loop in a special mode for the duration of the window. The trouble is, that mode does not include dequeuing things from GCD’s main queue, so anything you ask to be done that way doesn’t happen.

Re: Do playgrounds work at all in 7.1?

2015-11-07 Thread Rick Mann
> On Nov 6, 2015, at 23:25 , Quincey Morris > wrote: > > On Nov 6, 2015, at 22:14 , Rick Mann wrote: >> >> Ah, syntax error, Xcode doesn't report errors. > > Incidentally, when I tried it, I got regular compile errors in the >

Re: Fade when changing window's rootViewController possible?

2015-11-07 Thread David Duncan
> On Nov 7, 2015, at 1:30 PM, Diederik Meijer wrote: > > Dear list, > > Is it possible to change an iOS app window’s rootViewController at runtime > and have a fade animation between the two states happen? Not trivially, but you can do this trivially by presenting

Re: Fade when changing window's rootViewController possible?

2015-11-07 Thread Diederik Meijer
Thank you David, I forgot to mention that one of them is a UISplitViewController and - unless this has changed - that one can not be presented modally. It is for this reason that I want to switch the window’s rootViewController. Otherwise, a plain presentViewController would definitely make a