Re: Some help with NSComparisonPredicate please

2017-02-16 Thread Shane Stanley
On 17 Feb 2017, at 10:54 am, sqwarqDev wrote: > > Still looking for help with this, if anyone’s got any idea? Use LIKE instead of CONTAINS? -- Shane Stanley , ___ Cocoa-dev mailing list

Re: Some help with NSComparisonPredicate please

2017-02-16 Thread Steve Mills
On Feb 16, 2017, at 17:54, sqwarqDev wrote: > > Still looking for help with this, if anyone’s got any idea? > >> On 15 Feb 2017, at 22:50, sqwarqDev wrote: >> >> Building with Xcode 7.3.1, macOS 10.11.6 >> >> I’m using an NSPredicate with the form:

Re: Some help with NSComparisonPredicate please

2017-02-16 Thread sqwarqDev
Still looking for help with this, if anyone’s got any idea? > On 15 Feb 2017, at 22:50, sqwarqDev wrote: > > Building with Xcode 7.3.1, macOS 10.11.6 > > I’m using an NSPredicate with the form: > > NSString *targetString = @“some string or other”; > NSPredicate

Re: UI bindings

2017-02-16 Thread Ariel Feinerman
Thank you very much for you response! I know KVC and KVO. I have read on Cocoa Bindings and really not found what I looked for. I experimented and realised that bindings set the value to variable (or value in dictionary) only when you edit the view (text field in my example) but I set default

Re: Can't restore first responder when restoring window state

2017-02-16 Thread Quincey Morris
On Feb 16, 2017, at 12:43 , David Catmull wrote: > > I looked through the documentation, and didn't see anything that says you > shouldn't call those methods. Well, “encodeRestorableStateWithCoder:" > This method is part of the window restoration system and is called

Re: Can't restore first responder when restoring window state

2017-02-16 Thread David Catmull
I looked through the documentation, and didn't see anything that says you shouldn't call those methods. If they were meant to be overridden and not called, I expect they'd use something more opaque and special-purpose than NSCoder. As for being called twice, I don't see a problem, since they'll

Re: Can't restore first responder when restoring window state

2017-02-16 Thread Quincey Morris
On Feb 16, 2017, at 11:32 , David Catmull wrote: > > I am explicitly calling encodeRestorableState (in windowWillClose) and > restoreStateWithCoder (in windowDidLoad). You can’t. These methods — assuming you’re talking about overrides in (say) the window controller —

Re: Can't restore first responder when restoring window state

2017-02-16 Thread David Catmull
I am explicitly calling encodeRestorableState (in windowWillClose) and restoreStateWithCoder (in windowDidLoad), storing and reading the data to/from a file myself. I know those are normally used as part of the automatic app state restoration, but I want to restore a window's state regardless of

Re: Can't restore first responder when restoring window state

2017-02-16 Thread Quincey Morris
On Feb 16, 2017, at 10:09 , David Catmull wrote: > > I'm working on using encodeRestorableState/restoreStateWithCoder to save > and restore the state of a window. (I'm doing this manually because I want > to explicitly save my window state in the document and not just

Can't restore first responder when restoring window state

2017-02-16 Thread David Catmull
I'm working on using encodeRestorableState/restoreStateWithCoder to save and restore the state of a window. (I'm doing this manually because I want to explicitly save my window state in the document and not just rely on the OS restoring its state as part of restoring the application state.) The

Locale in Watch

2017-02-16 Thread Gerriet M. Denkmann
I use WKInterfaceDate / WKInterfaceTimer in a wach app (3.1.3). I would like to set the Locale - but see no way to do so. The only thing I did accomplish is to set the calendar of WKInterfaceDate according to the locale. In macOS I would use: NSDateFormatter *dateFormatter = [ [