How does chromium simulate keyboard events using CGEventPost in pre login agent?

2017-01-04 Thread Sai Prasanna
I have created a pre-login agent which uses CGEventPost for simulating keyboard. FYI I am developing a remote control app similar to teamviewer. Keyboard (I tried other event sources too) CGEventRef keyEvent = CGEventCreateKeyboardEvent( NULL, keyCode, down ) ; CGEventPost( kCGHIDEventTap, keyEve

Re: Cocoa-dev Digest, Vol 14, Issue 7

2017-01-04 Thread Jens Alfke
> On Jan 4, 2017, at 2:42 PM, Lorenzo Thurman wrote: > > What you have to do is when you get the didselect notification in the one > table, you need to unselect from the other table. There are a couple of small > issues with this still, and you lose the selection in the first table, if > that

Re: Retaining non-document windows

2017-01-04 Thread Quincey Morris
On Jan 4, 2017, at 14:11 , Jean-Daniel wrote: > > When using storyboard, the only way to instantiate window is by getting a > reference to the window controller (by using > -instantiateControllerWithIdentifier:), so it should not be an issue. The problem I was referring to is when the window [

Re: Cocoa-dev Digest, Vol 14, Issue 7

2017-01-04 Thread Lorenzo Thurman
> On Jan 4, 2017, at 2:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > > Hi all > I would like to get your experience of using tableViewSelectionDidChange > notification of NSTableView. I have 2 table using in my application. When I > click first table row, it is selected and row shown as blu

Re: Retaining non-document windows

2017-01-04 Thread Jean-Daniel
> Le 4 janv. 2017 à 20:37, Quincey Morris > a écrit : > > On Jan 4, 2017, at 02:30 , Daryle Walker wrote: >> >> I always had to guess how to retain a non-document window. I usually get it >> after a bunch of hacking, but I want more official advice. Like I can get >> from here. >> >> I thi

Re: 12 hr vs 24 hr time display

2017-01-04 Thread Alex Zavatone
Sandor, just to let you know, all I did was go into the Date & Time System Preference, and do the following: Set the Time options to - Use a 24 hour clock - Open ~/Library/Preferences/com.apple.menuextra.clock.plist - Copy and paste the contents into the email. Set the Ti

Re: 12 hr vs 24 hr time display

2017-01-04 Thread Sandor Szatmari
Alex, This is interesting, and thanks for digging it up. Using this plist it appears that I could use [[NSUserDefaults standardUserDefaults] addSuiteNamed:@"com.apple.menuextra.clock"] and access this data with the key 'DateFormat'. I'm not sure I want to do this. I expect there is a degree

Re: Retaining non-document windows

2017-01-04 Thread Quincey Morris
On Jan 4, 2017, at 02:30 , Daryle Walker wrote: > > I always had to guess how to retain a non-document window. I usually get it > after a bunch of hacking, but I want more official advice. Like I can get > from here. > > I think there are three scenarios: > - a window with 0 or 1 instances lik

Re: 12 hr vs 24 hr time display

2017-01-04 Thread Sandor Szatmari
Jeremy, > On Jan 4, 2017, at 08:56, Jeremy Pereira wrote: > > >> On 3 Jan 2017, at 16:34, Sandor Szatmari >> wrote: >> >> Jeremy, >> >>> On Jan 3, 2017, at 10:30, Jeremy Pereira >>> wrote: >>> >>> >>> >>> It seems obvious to me that method 1 only refers to the clock display in >

Re: 12 hr vs 24 hr time display

2017-01-04 Thread Jeremy Pereira
> On 3 Jan 2017, at 16:34, Sandor Szatmari wrote: > > Jeremy, > >> On Jan 3, 2017, at 10:30, Jeremy Pereira >> wrote: >> >> >>> >> >> It seems obvious to me that method 1 only refers to the clock display in the >> menu bar and nothing else. It’s a sub setting of >> “Show date and time i

Retaining non-document windows

2017-01-04 Thread Daryle Walker
The NSDocument system makes sure the windows it creates are retained until closing. You can see this in default new-project code. If you run the default code for non-document apps, you see that there's no way to bring back the initial window if closed, and therefore has no chance to show proper