Re: How to cancel a print operation?

2016-03-25 Thread James Walker
Never mind, I found it. [[[NSPrintOperation currentOperation] printInfo] setJobDisposition: NSPrintCancelJob] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mode

How to cancel a print operation?

2016-03-25 Thread James Walker
The standard print progress panel has a Cancel button, but there does not seem to be any way to customize that panel, so I want to use my own progress panel. But I don't see any method in NSPrintOperation to cancel the operation. My printing view could cease to draw content, but printing a bu

Re: Why is the first of March a Tuesday

2016-03-25 Thread Gary L. Wade
The documentation needs to be more descriptive. The word "wrap" in the name of the option should fill in the missing reason. Feel free to file a radar. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Mar 25, 2016, at 9:09 AM, Gerriet M. Denkmann wrote: > > >>> On 25 Mar 2016,

Re: Why is the first of March a Tuesday

2016-03-25 Thread Clark Cox
> On Mar 25, 2016, at 09:09, Gerriet M. Denkmann wrote: > > >> On 25 Mar 2016, at 23:01, Clark Cox wrote: >> >>> >>> On Mar 25, 2016, at 08:43, Gerriet M. Denkmann wrote: >>> >>> In my calendar 2016/3/1 is a Friday, but: >> >> >> Something's wrong with your calendar then :). March 1, 201

Re: Why is the first of March a Tuesday

2016-03-25 Thread Gerriet M. Denkmann
> On 25 Mar 2016, at 23:01, Clark Cox wrote: > >> >> On Mar 25, 2016, at 08:43, Gerriet M. Denkmann wrote: >> >> In my calendar 2016/3/1 is a Friday, but: > > > Something's wrong with your calendar then :). March 1, 2016 *is* a Tuesday: Yes, sorry for the noise. I was adding 7 days to toda

Re: adding days

2016-03-25 Thread Steve Mills
On Mar 25, 2016, at 10:52 AM, "Gerriet M. Denkmann" wrote: Please ignore previous post. NSDate *nextTh =        [ currentCalendar      dateByAddingUnit:   NSCalendarUnitDay value: 7    toDate:  now options:      NSCalendarWrapComponents ]; NSLog(@“%s now + %zd days = %@",__FUNCTION__, addDay,

Re: Why is the first of March a Tuesday

2016-03-25 Thread Clark Cox
> On Mar 25, 2016, at 08:43, Gerriet M. Denkmann wrote: > > In my calendar 2016/3/1 is a Friday, but: Something's wrong with your calendar then :). March 1, 2016 *is* a Tuesday: % cal March 2016 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

Re: Why is the first of March a Tuesday

2016-03-25 Thread Steve Mills
On Mar 25, 2016, at 10:43 AM, "Gerriet M. Denkmann" wrote: In my calendar 2016/3/1 is a Friday, but:   prints “Tue 01 Mar 2016 01:00:00 +0700” What am I doing wrong? You're looking at April, not March. March 1, 2016 was Tuesday. April 1, 2016 is a Friday. Sent from iCloud's ridiculous UI, s

adding days

2016-03-25 Thread Gerriet M. Denkmann
Please ignore previous post. NSDate *nextTh =[ currentCalendar dateByAddingUnit: NSCalendarUnitDay value: 7 toDate: now options:NSCalendarWrapComponents ]; NSLog(@“%s now + %zd days = %@",__FUNCTION__, addDay, [

Why is the first of March a Tuesday

2016-03-25 Thread Gerriet M. Denkmann
In my calendar 2016/3/1 is a Friday, but: - (NSString *)timerStringFor: (NSDate *)date { NSDateFormatter *dateFormatter = [ [ NSDateFormatter alloc ] init]; dateFormatter.dateFormat = @"EEE dd MMM HH:mm:ss ZZZ"; NSString *un = [ dateFormatter stringFromDate: date ];

Understanding accessibility

2016-03-25 Thread Antonio Nunes
I’ve create a custom view controller, and am trying to make it accessible, bot not really getting much luck. The view hierarchy is fairly involved, with multiple levels of stack views and buttons and/or custom views nested within those. From my reading of Apple’s docs on supporting accessibilit