I've been writing a program based on the ScreenSnapshot example from apple: http://developer.apple.com/library/mac/#samplecode/OpenGLScreenSnapshot/Introduction/Intro.html
and after upgrading from Snow Leopard to Lion my program stopped working. When I checked the example I realized it is not working either.
For some reason glReadPixels function raises the GL_INVALID_FRAMEBUFFER_OPERATION_EXT error (0x0506).
I have reinstalled developer's tools but no luck. Has anyone made any progress with this issue? Any pointers will be greatly appreciated.
An updated version was posted a few days ago, see this new sample code called ScreenSnapshot. There's now a dedicated fonction CGDisplayCreateImage. There's even an accompanying technical Q&A.
So, a more général answer: follow Apple's document révisions regularly. (Sorry for extraneous accents over é's or fonctions... somehow Lion's spell checker wants to be in French mode.. grr...)
Related
I have looked up a lot of resources for programming NSCollectionView but couldn't find any please help.
Seen following but not working:
1.https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CollectionViews/Introduction/Introduction.html
2. not found any relevant source code on github
3.watched-https://www.youtube.com/watch?v=dw-sHMTsMVs but outdated.
please help.
You mention Xcode 6.4. Is that for a specific reason?
If you have the opportunity to upgrade then Apple has introduced a new NSCollectionView in OSX 10.11 El Capitan.
You can watch the WWDC introduction video here
The related example can be downloaded from Apple here in ObjectiveC
And if you'd like an example in Swift, the Exhibition example is worth investigating.
All of the above is 10.11 only, so if you're stuck on Xcode 6.4 then the above won't be of any usage to you, sorry
I spent 10 days trying to debug iCloud connection for my (extra cool) app coming... Its really hard to set up when you use Core Data. Now it doesn't work on device with iCloud on.
I want to ask if there is ready open-source solution to copy&paste code to my app for it finally to run?
Thanks!
***Not interested in iCloud analogs like parse, dropbox...
There's code around, but code is not the problem. In the current versions of Mac OS X and iOS, and in the current version of whatever server side code they're using, Core Data with iCloud often just fails to work. This happens even if your code is exactly right. Start with Apple's sample code (including the SharedCoreData example from WWDC 2012), and if you have specific questions, ask them. But getting the code just right is not enough. File bugs and hope that future versions of Mac OS X and iOS are better.
I am working through the book Cocoa Design Patterns by Buck and Yacktman and it seems their sample code is out of date. When I try to run it, xcode says: "The run destination My Mac 64-bit is not valid for Running the scheme." Is there an easy way to get the code to run?
Thanks
The answer is to change the Base SDK in the Build Settings to Latest Mac OS X
Using XCode 3.2.5, I have recently changed my Base SDK from 10.5 to 10.6 (Deployment SDK is still 10.5) and have run into the same thing as mentioned in this thread:
Linking to libcrypto for Leopard?
So the correct libcrypto image is not found when loading the application under Leopard. (Used by Aquatic Prime).
My question is - is this really still the right solution 17 months later? It seems like there has been several XCode releases and OS updates since then, and previous posters have said they have filed bug reports with Apple, I'm just finding it hard to believe that a bug this big still exists. Also, I haven't found any mention of this problem in the Apple Developer Forums which is hard to believe too. It makes me think that I've set something up wrong or other people would still be running into this problem as well.
I have no problem implementing the solution outlined in the previous thread (haven't tried it yet though), I just want to make sure that I'm solving the right problem.
I need to decide whether I should support Mac OS X 10.4 / Tiger, and the decision likely hinges on what percentage of mac users are still running Tiger. I didn't find anything too reliable on the interwebs nor on Apple's developer website. Let's ignore the impending Snow Leopard release and it's impact on Mac OS version usage distribution.
Does anyone know of a study that might provide insight? Any other suggestions on how to figure this out? If you quote any numbers/percentages please include a pointer to the source.
Take a look at the Sparkle+ stats, that the Adium project is collecting.
The stats are available here.
OmniGroup keeps track of the system configurations that use their software updater. The current split is roughly 60/40 in Leopard's favor.
Keep in mind that, judging from previous releases, Apple will likely drop official support of Tiger once Snow Leopard is released, which should be any day now.
It really depends on what user audience your software has (whether they're likely to upgrade or not). I don't have a study, but considering how each major update costs money, I'm sure there are many non-power users who are still on older editions.
You're better off targeting Leopard only, especially with Snow Leopard coming out at the end of the week with a lot of changes to key technologies. Apple moves pretty quickly and soon enough supporting Leopard will be your legacy support.
From the Adium Sparkle+ stats that weichsel linked to:
10.3 : 2170 ( 1.3%)
10.4 : 28645 (16.3%)
10.5 or above: 134269 (82.4%)