Good refresher video on building arrays in C. I got stuck and it helped because I was looping one past my array max by using an <= sign instead of <.
Parallel Programming: Task Schedulers and Synchronization Context
Thanks to everyone who provided feedback on my previous post Parallel Programming in .NET Framework 4: Getting Started. As promised, I am continuing the series. This time, let’s go a little bit deeper and talk about task schedulers, synchronization c…
C++ and format_iterator
Enhancing C++’s flexibility and expressiveness
Parallel Programming in .NET Framework 4: Getting Started
With this post I want to start a series devoted to the new parallel programming features in .NET Framework 4 and introduce you the Task Parallel Library (TPL). Update. The list of posts in this series: Getting Started (this post) Task Schedule…
Accessorizer 2.0 is out!
Accessorizer by Kevin Callahan is one my absolute favorite utilities, as I’ve mentioned before. Well, now, there’s a new reason to love it. Kevin just released 2.0 over the weekend. And there’s great news for those of you who have bought previous versi…
Core Data and Threading
I’ve had a number of people ask me lately about the best way to handle using Core Data in a multi-threaded application. I began to put together a tutorial and sample code based on Apple’s documentation, which advises to pass NSManagedObjectIDs between threads to get around the fact that threads can’t share instances of NSManagedObjectContext or NSManagedObject. I’ve used this approach in several projects and it works.
While googling around doing research, however, I came across a post by Marcus Zarra on the Mac Developer Network.
Marcus knows Core Data really well, having written a book on the topic, so I figured I’d take a look at what Marcus had to say on the matter. I’m glad I did. Marcus illustrates a really great approach in his post that obviates the need to pass ManagedObjectIDs around between the thread in many situations. You still need to do that if you need to pass a specific object between threads, but if you’re doing something like loading or creating managed objects in the background to be displayed in a table, this is so much easier and better.
I won’t spoil the surprise, but it’s a handy tool for your Core Data toolkit. If you have any thought about using Core Data in a multi-threaded application, you should definitely check it out.
http://iphonedevelopment.blogspot.com
The Martian Invasion: Announcing MartianCraft
About four months ago, I joined together with my friend and co-author, Dave Mark and with Rob Rhyne, developer of the awesome Briefs prototyping tool, to form a new mobile software development company specializing in the iPhone and Android platforms. T…
iPhone OS 4.0 beta 4 hints at AT&T data tethering
The release of Apple’s (NASDAQ:AAPL) new iPhone OS 4.0 beta 4 indicates the next version of the smartphone will likely offer U.S. consumers data tethering, a feature long desired by AT&T (NYSE:T) subscribers. iPhone tethering–enabling consumers to…
Downloading Images for a Table without Threads
It is common practice in many networking libraries in many languages to spawn threads to handle asynchronous communications in the background while the rest of the program continues to function. Although this approach does work on the iPhone, it’s real…
Pre-WWDC Pilgrimage Sign-Up
If you think you’re interested in traveling from Downtown San Francisco to One Infinite Loop, Cupertino on Saturday Sunday, June 6th to go to Apple’s Company Store, or if you live in the area and just want to join us for lunch, please fill out this que…