Re: APFS

2017-06-17 Thread Ken Thomases
On Jun 16, 2017, at 1:57 AM, Quincey Morris wrote: > > FWIW, the WWDC session on APFS is worth watching: > > https://developer.apple.com/videos/play/wwdc2017/715/ > > > because it relates to an inconclusive discussion we had recent

Re: Deep linking from 1 tvOS app to another

2017-06-17 Thread Aandi Inston
> Actually don’t do the substitution by hand. Let NSString URL-encode it for you. Otherwise your URL will break again when someone decides to type a “/“ or “#”, etc. into your text field. This is an interesting point. A / is actually legal in a URL but has specific semantics, while space just isn'

Re: Release mode bindings crash and release pools

2017-06-17 Thread Jonathan Mitchell
> On 16 Jun 2017, at 23:18, Quincey Morris > wrote: > > On Jun 16, 2017, at 14:41 , Jonathan Mitchell wrote: >> >> I sometimes use the default NSObject bind: to set up a simple one way >> operation as you describe as opposed to a discrete observation. > > With macOS 10.13, the new block/clo

Re: Release mode bindings crash and release pools

2017-06-17 Thread Jonathan Mitchell
> On 17 Jun 2017, at 01:54, Charles Srstka wrote: > >> it’s preferred that bindings go either through an NSObjectController, an >> NSViewController, or something else that implements NSEditorRegistration. I think that is a crucial aspect in all this. I while back I configured bindings in cont

Re: Release mode bindings crash and release pools

2017-06-17 Thread Charles Srstka
> On Jun 17, 2017, at 5:32 AM, Jonathan Mitchell wrote: > >> On 16 Jun 2017, at 23:18, Quincey Morris >> > > wrote: >> >> On Jun 16, 2017, at 14:41 , Jonathan Mitchell > > wrote: >>> >>> I sometimes use the default NSObje

Re: Release mode bindings crash and release pools

2017-06-17 Thread Jonathan Mitchell
> On 17 Jun 2017, at 14:21, Charles Srstka wrote: > >> On Jun 17, 2017, at 5:32 AM, Jonathan Mitchell > > wrote: >> >>> On 16 Jun 2017, at 23:18, Quincey Morris >>> >> > wrote: >>> >>> On Jun 16, 2017, at 14:41 , Jonatha

Re: Release mode bindings crash and release pools

2017-06-17 Thread Charles Srstka
> On Jun 17, 2017, at 8:36 AM, Jonathan Mitchell wrote: > >> On 17 Jun 2017, at 14:21, Charles Srstka > > wrote: >> >>> On Jun 17, 2017, at 5:32 AM, Jonathan Mitchell >> >>

Re: Release mode bindings crash and release pools

2017-06-17 Thread Jonathan Mitchell
> On 17 Jun 2017, at 16:36, Charles Srstka wrote: > >> On Jun 17, 2017, at 8:36 AM, Jonathan Mitchell > > wrote: > > > Just tested it on 10.9; it works :-) > > import Foundation > > class C: NSObject { > @objc dynamic var foo = "Foo" > } > > let c = C() > >

Re: Release mode bindings crash and release pools

2017-06-17 Thread Charles Srstka
> On Jun 17, 2017, at 3:11 PM, Jonathan Mitchell wrote: > >> On 17 Jun 2017, at 16:36, Charles Srstka > > wrote: >> >>> On Jun 17, 2017, at 8:36 AM, Jonathan Mitchell >> > wrote: >> >> >> Just tested it on 10.9; it works :-) >> >>

Re: Unable to extract JPEG from PHAsset

2017-06-17 Thread David Duncan
> On Jun 16, 2017, at 7:31 AM, Glen Huang wrote: > > Hi, > > I'm trying to extract the JPEG data from a PHAsset. I did it like this: > >let fetchOptions = PHFetchOptions() >fetchOptions.sortDescriptors = [NSSortDescriptor(key: > "creationDate", ascending: true)] >