-
Recent Posts
- How do I map a differential/transaction log backup to its full backup without using MSDB?
- Change Data Capture gets disabled when you break mirroring and bring the database online
- Change Data Capture gets disabled when you break mirroring and bring the database online
- Do NOT delete files from the Windows Installer folder
- How to monitor deadlock using extended events in SQL Server 2008 and later
-
Recent Comments
- Dave on How to Point a Domain to an Amazon EC2 Virtual Server
- David Ziffer on Programming Language | .NET Multiple Inheritance Issue
- Ashok on SAP HR Certifications Sample Questions Set 4
- Brad on JetBrains Rolls Out Competitor For Objective C Development
- Danny on Getting Started (for Free!) with Amazon Elastic Cloud Computing (EC2)
Monthly Archives: May 2010
Understanding RoleTailored Client Terminology
The RoleTailored client in Microsoft Dynamics NAV 2009 is designed to help users focus on their tasks by tailoring their application experience to the needs of their role. To help our customers better understand this new paradigm, and to help partners …
Continue Reading: Understanding RoleTailored Client Terminology →
Flash Vs HTML5
The Flash vs HTML war has recently intensified with Apple’s release of the revolutionary iPad. Adobe has been working on their Creative Suite 5 to make it easier for developers to create Flash and AIR apps that are compatible with the software running the iPod and iPad. In the mean time, Apple was developing iPhone [...]
Continue Reading: Flash Vs HTML5 →
Core Data and Threading
©2008-2010 Jeff LaMarche.
http://iphonedevelopment.blogspot.com
Continue Reading: 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
How to Use the PHP 5 Autoloading Classes Feature to Automatically Include PHP Files
Autoload is a new feature introduced in PHP5 that you don’t have to explicitly require or include a PHP script file that contains the class being used any more but it will be automatically loaded or included when needed. For example, with PHP4 you would have to write something like this: require_once(“foo.php”); // foo.
Continue Reading: How to Use the PHP 5 Autoloading Classes Feature to Automatically Include PHP Files →
Creating Your Own iPhone Applications & the Apple App Market
How many people now own a Apple iPhone? How many people download applications for the iPhone every single day? There are currently (at time of writing) over 90,000 applications available for download in the App Store via your iPhone!
Continue Reading: Creating Your Own iPhone Applications & the Apple App Market →
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…
Continue Reading: The Martian Invasion: Announcing MartianCraft →
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…
Continue Reading: iPhone OS 4.0 beta 4 hints at AT&T data tethering →
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…
Continue Reading: Downloading Images for a Table without Threads →
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…
Continue Reading: Pre-WWDC Pilgrimage Sign-Up →