Post not yet marked as solved
Am I doing something wrong or is it a bug? I am getting 21000 year when parsing 01/01/00 string to date using the "MM/dd/yy" format: NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"MM/dd/yy"]; NSDate *originalDate = [NSDate dateWithTimeIntervalSinceReferenceDate:-24 * 60 * 60 * 366]; NSString *jan01String = [dateFormatter stringFromDate:originalDate]; NSDate *jan01Date = [dateFormatter dateFromString:jan01String]; NSLog(@"originalDate: %@, jan01String: %@, jan01Date: %@", originalDate, jan01String, jan01Date);output:2016-07-14 15:44:49.723 NSDateFormatterTests[5414:1537640] originalDate: 2000-01-01 00:00:00 +0000, jan01String: 01/01/00, jan01Date: 12099-12-31 22:00:00 +0000
Post not yet marked as solved
Hello,How can one skip "sharing summary" window (the one that shows owner and other participants, and that has "Add People" button) and show Add People view right away, when there is only one participant (owner). I see, that Notes do that, but I cannot find a way to achieve it. I am using NSSharingService:...
NSSharingService *sharingService = [NSSharingService sharingServiceNamed:NSSharingServiceNameCloudSharing];
...
[sharingService performWithItems:itemProviders];But it always shows summary (participants) view even if there is only 1 owner and I cannot find a way to customize it - skip that view and show Add People view instead. Am I missing anything?
Post not yet marked as solved
Is it a bug ir am I doing something wrong? NSScrubber with continuous=YES and floatsSelectionViews=YES sometimes shows wrong selected item after swipe. This can be reproduced with "NSTouchBar Catalog" sample project (https://developer.apple.com/library/content/samplecode/NSTouchBarCatalog/Introduction/Intro.html). Just setscrubber.continuous = YES;
scrubber.floatsSelectionViews = YES;Choose some selection Overlay Style (other than none) to see selection changes. Then swipe to the right. After swipe finishes, swipe to the left. Scrubber stops selecting new items (stops announcing selectedIndex changes) after some time, but scrubber's selection view keeps moving and it finally ends/stops at index 0. Here are some logs when making quite big swipe to the left:2017-07-28 12:51:38.552910+0300 NSTouchBar Catalog[1981:783926] scrubber didSelectItemAtIndex: 342017-07-28 12:51:38.563976+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {30, 8}2017-07-28 12:51:39.866444+0300 NSTouchBar Catalog[1981:783926] scrubber didSelectItemAtIndex: 332017-07-28 12:51:39.870860+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {29, 8}2017-07-28 12:51:39.880413+0300 NSTouchBar Catalog[1981:783926] scrubber didSelectItemAtIndex: 292017-07-28 12:51:39.889358+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {25, 8}2017-07-28 12:51:39.891331+0300 NSTouchBar Catalog[1981:783926] scrubber didSelectItemAtIndex: 242017-07-28 12:51:39.903191+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {20, 8}2017-07-28 12:51:39.905293+0300 NSTouchBar Catalog[1981:783926] scrubber didSelectItemAtIndex: 192017-07-28 12:51:39.916575+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {15, 8}2017-07-28 12:51:39.946496+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {9, 8}2017-07-28 12:51:39.964225+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {2, 8}2017-07-28 12:51:39.973443+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {0, 4}2017-07-28 12:51:39.988610+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {0, 2}2017-07-28 12:51:40.004585+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {0, 1}2017-07-28 12:51:40.139081+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {0, 2}2017-07-28 12:51:40.205605+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {0, 3}2017-07-28 12:51:40.339253+0300 NSTouchBar Catalog[1981:783926] scrubber didChangeVisibleRange: {0, 4}