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 = [ [ NSDateFormatte
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 pr
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 rely on the
> OS restoring i
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 wh
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 — are called by the state re
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 ju
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 at
> appropriate times to
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
value
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 *searchPredicate = [NSPredicate
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:
>>
>> NSString *targetString = @“some strin
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 (Cocoa-dev@lists.apple.com)
Please do not post admin req
11 matches
Mail list logo