Re: [OT] Question about writing documentation

2017-04-21 Thread Jens Alfke
One of my co-workers made a pretty nice class hierarchy diagram using an open source tool called PlantUML. https://en.wikipedia.org/wiki/PlantUML —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: [OT] Question about writing documentation

2017-04-21 Thread davelist
> On Apr 21, 2017, at 5:33 AM, Dave wrote: > > Hi, > > I’m looking for a decent Application that runs on the Mac that will allow me > to create detailed diagrams of Objective-C Classes. Basically I have a > Network of inter-related Objects, the Network is represented

Quartz Event Taps and Touch Bar

2017-04-21 Thread Bill Cheeseman
Here's the second half of the AppDelegate.m file referenced in my previous two messages: - (void)logEvent:(NSEvent *)event { // Log interesting information about the event. Called by the myCGEventCallback() function. // Get the description and target PID of the Touch Bar event.

Quartz Event Taps and Touch Bar

2017-04-21 Thread Bill Cheeseman
Here's the first half of the AppDelegate.m file referred to in my previous message. The second half, the -logEvent: method, will follow in my next message. // // AppDelegate.m // Touch Bar Monitor // // Created by Bill Cheeseman on 2017-04-15. // Copyright © 2017 PFiddlesoft. All rights

Quartz Event Taps and Touch Bar

2017-04-21 Thread Bill Cheeseman
I announced today on Apple's accessibility-dev mailing list that I have discovered that the MacBook Pro (Late 2016) Touch Bar in macOS Sierra 10.12.2 and later supports AppleScript's GUI Scripting technology using the Accessibility API as well as supporting Quartz Event Taps. Apple's API

Unit testing a series of aync operations?

2017-04-21 Thread Rick Mann
I can use waitForExpectations() to test an asynchronous operation, but a real-world test often involves several async ops chained together. I'd like to abort the test if some of those operations fail to complete in a certain amount of time. Some ops should be quick, while later ops can take

Re: Detecting if current user owns the screen (screen lock/FUS)

2017-04-21 Thread Stephane Sudre
SystemConfiguration.framework? You can: - retrieve the current uid,gid, user name with SCDynamicStoreCopyConsoleUser - be notified via a C callback when the console user changes (SCDynamicStoreCreate, SCDynamicStoreKeyCreateConsoleUser(), SCDynamicStoreSetNotificationKeys,

[OT] Question about writing documentation

2017-04-21 Thread Dave
Hi, I’m looking for a decent Application that runs on the Mac that will allow me to create detailed diagrams of Objective-C Classes. Basically I have a Network of inter-related Objects, the Network is represented by Array’s and Dictionary’s and I like to do some diagrams showing how each

Detecting if current user owns the screen (screen lock/FUS)

2017-04-21 Thread Uli Kusterer
Hi, I have an application (think hardware driver) that runs as a particular (GUI) user. Now, if that user is switched out using Fast User Switching or the screen lock has engaged, I want to prevent the driver from working (as the user sitting in front of the computer with access to the