. Re: API to determine status of System Integrity Protection?

2015-09-14 Thread Stephane Madrau
2015-09-14 21:00 GMT+02:00 : > > The open() API returns EPERM when you try to access something protected by > SIP, but EACCES for normal permission errors. So, you could just try to > write to create a file at /System/foo without root access using open(), and > use the value returned by errno to d

Re: What triggers -applicationDidChangeScreenParameters: delegate method?

2014-12-11 Thread Stephane Madrau
2014-12-11 14:32 GMT+01:00 : > > That's an interesting suggestion. > > (...) I don't see anything specifically about GPU switches, but there are > plenty of functions that can reconfigure a display using the window server. I > can imagine some of them might be used by NSVisualEffectView. To e

Re: What triggers -applicationDidChangeScreenParameters: delegate method?

2014-12-11 Thread Stephane Madrau
2014-12-10 21:00 GMT+01:00 : > In the meantime, I compared all the code of my previous version against the > code of the new version, looking for changes that might cause this difference > in behavior. The only really big change is that my new version makes use of > the new NSVisualEffectView

Re: No Accessibility for Many Status Items

2013-11-16 Thread Stephane Madrau
Le 16 nov. 2013 à 18:57, cocoa-dev-requ...@lists.apple.com a écrit : > On 2013 Nov 15, at 23:05, Martin Hewitson wrote: > >> navigating works properly for … iStatMenus > > Ah, that’s interesting. That would make iStatMenus the first non-Apple > status item that I’ve seen that was not skipped

Re: i5 & i7 auto graphics switching

2010-09-13 Thread Stephane Madrau
2010/9/12 > When it is running on the slow card, the CGDirectDisplayID will be x, and on > the fast card it will be y. Is there anyway to derive x from y or y from x? > I am trying to be able to uniquely identify screens even before/after a > processor switch. Given a CGDirectDisplayID, you can

Re: Determining preferred localizations

2010-04-22 Thread Stephane Madrau
Le 22 avr. 2010 à 18:19, cocoa-dev-requ...@lists.apple.com a écrit : > Thanks, but no. What I'm passing in is the keys for the dictionary I get as a > result of this code: > > io_connect_t thePort = CGDisplayIOServicePort(theScreenNumber); > CFDictionaryRef theInfo = > (CFDictionaryRef)IODispla

Re: contextual menu plugin example in cocoa

2009-09-02 Thread Stephane Madrau
On 01.09.2009 21:02, cocoa-dev-requ...@lists.apple.com wrote: Jean-Daniel Dupas wrote: Yes. CM are deprecated (means do not work at all in Snow Leopard) and should be rewrote as Services. (see Services Programming Guide) That is exactly the kind of little, but spot on comment I find so sore