AVCaptureScreen on Mac OS X 10.8 - macos

I have been trying to use the AVCaptureScreenInput class on Mountain Lion 10.8:
https://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVCaptureScreenInput_Class/Reference/Reference.html
I downloaded the following sample code provided by Apple:
http://developer.apple.com/library/mac/#samplecode/AVScreenShack/Introduction/Intro.html
But when I ran it, it did not capture my screen. Instead it just showed a green screen where my screen was supposed to be.
Someone else noticed the problem here: http://openradar.appspot.com/12220970
Does anyone know how to work around this problem?

Doing the following "fixed" the problem. I don't know why:
defaults write com.apple.cmio CMIO_Unit_Input_ASC.DoNotUseOpenCL -bool YES
I filed a bug here: https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/41/wo/Dtr5y1Zj8ikA0Rjw6xYON0/6.83.28.0.9
Bug ID = 13917881

"High" session preset doesn't work in Mac OS 10.8. But on changing to
other preset like medium or any other resolution sample code will work.

Related

Yosemite OSX 10.10.1 Asset image not shown Properly

I am using OS Seiera and xcode 7.3.1 for making .dmg. Images with same properties are acting differently on Yosmemite. Some of them works perfectly but some are getting weird, as you can see images. What could be the issue in image I am using, as all are coming from same designer. Is there a slicing issue for from some property twicking should me made?
Thanks.

Accessibility broken with Preview.app in OS X 10.8.4?

We have an application that integrates with different programs (among which is the Preview.app) using accessibility. We use the AXUIElementSetAttributeValue function to programmatically select some text in a PDF document using the kAXSelectedTextRangeAttribute. This used to work fine but suddenly stopped on my Mac (nothing seems to happend). My co-worker doesn't have the issue so after trying to figure out the difference I remembered that I had just updated to OS X 10.8.4 while he hasn't. I then read about this update and among the features and fixes was the following:
Improves VoiceOver compatibility with text in PDF documents
This indicates to me that they have fiddled with the area where I am having the issue. My question is now weather this is simply a bug or if it is by design. In the case of the latter, what am I supposed to use in stead?
PS. We tried also setting the selection range using the Accessibility Inspector found under Developer tools in Xcode and it works fine in 10.8.2 but not in 10.8.4, which further indicates that this might be a bug.
This is indeed a bug. I just installed the developer preview of OS X 10.8.5 and the issue has been resolved here. In the change-log it also says that some of the changes in this version regard "PDF viewing and Accessibility".

Mac App just showing grey screen for Mac OS X 10.7.5

I've just published a new Mac App and it is working correctly on my MacBook which is running OS X 10.8.2. However, I've been getting emails from people saying they only see a blank grey screen when the app launches. All these users are running OS X 10.7.5.
Is there a known issue that would cause something like this. I can't really go into specifics as I don't have a clue what could be causing this to happen or where the problem is.
Thanks

How to simulate a retina display (HiDPI mode) in Mac OS X 10.8 Mountain Lion on a non-retina display?

How can you simulate a retina display (HiDPI mode) in Mac OS X 10.8 Mountain Lion on a non-retina display?
Search for, download, and install Apple's free Additional Tools for Xcode 8 (for previous Xcode releases search for Graphics Tools for Xcode according to your version).
Note: free Apple Developer account required.
Launch Quartz Debug application.
Go to menu: Window ---> UI Resolution.
Check Enable HiDPI display modes.
Quit Quartz Debug.
Open System Preferences.
Select Displays icon.
If using multiple display, select the configuration window on the display you wish to simulate HiDPI mode on.
Under Resolution:, select Scaled radio button.
Find a desired resolution postfixed with (HiDPI) and select it.
Your display is now running in HiDPI mode, simulating a retina display.
Source: High Resolution Guidelines for OS X
I found the following instructions. It seems to work, and it is much easier than the Quartz Debug approach.
"Enable HiDPI mode in Mountain Lion w/o Quartz Debug"
https://gist.github.com/3191869
In brief, run the following commands, log out, log on, and the HiDPI resolutions are available in the display preferences:
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled
(In my case the first command was enough; the second command just prints an error message.)
Edit: (5/31/2016)
For users trying to do this on El Capitan, please read the FAQ on SwitchRes's website. Also, if something's still not working after you did all the steps in the FAQ, consider uninstalling and reinstalling SwitchResX. That solved the issue I was having on one of my laptops.
Original:
After reading through several forums, websites, blogs.
I am here to present a solution for users with 15" MacBook Pro with Retina display connected to a Thunderbolt Display.
First of all,
Terminal command of modifying plist
Quartz Debug
Holding option and select "Scaled" in System Preferences
ResolutionTab (Mac App Store)
These methods DO NOT work for MBPr with Thunderbolt Display, for whatever reasons.
You will not see the HiDPI options to be selected.
The only tool I found that actually gives us the options is SwitchResX.
However another problem exists here.
Most users with this setup, I believe, are trying to use 1280x720 HiDPI because it's half the native resolution of the TBD.
According SwitchResX's FAQ, in some cases it is not possible to set to this resolution because of a bug within OS X itself.
Here's a screenshot for your reference:
After contacting the developer, he presented a workaround - adding one more pixel - which worked for me.
Install SwitchResX and open it from System Preferences.
Go to Thunderbolt Display tab, and add a Custom Resolutions with Scaled Resolution at 2562 x 1440
Here's a screenshot
Save using command + s. (or simply close the window and use the prompt up)
Restart the laptop.
Go to SwitchResX and select the new custom resolution in the Current Resolution tab. (Sometimes it doesn't show up right away, play around with it and it should.)
Here you go.
I hope this answer gets to users with this setup because it is really frustrating to use 16:10 resolution on a 16:9 display.
For those unable to enable HIDPI on rMBP or new MBA, I experienced the same on my rMBP 15" with Air Display. I solved the problem by installing SwitchResX. With the boolean setting enabled as shown in the referenced gist, the HIDPI setting shows up.
Dragging seems a little laggy in Air Display, but otherwise works great.
Try this
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES
[from here]
If your monitor supports it, it may also be worth setting the DisplayPort version to 1.1 instead of 1.2.
I have a late 2010 Mac Air with a Samsung S27D850 display and had all sorts of intermittent resolution switching issues until I made that change.
As for me its pretty good app that give you opportunity for changing resolution any that you want.
SwitchResX for Mac and MacBook.
This app resolved all my problems with resolution.

Xcode error "cannot set a default platform"

I dont know if this fits stackoverflow.com, but I cant even open Xcode. It just gives me this error "The MAC OS X platform is missing - cannot set default platform."
I have just installed Xcode. I dont get the error message, and I have never seen it before. Cant find anything on google.
Is there anyone who can give me a hint in form of a link, or paper?
The problem was that I have done a complete reinstall of OS X with out zero writing the harddisk first. I have solved the problem by simple zero write the harddisk, and then reinstalled OS X again. Now I can use Xcode.

Resources