Re: dyld CoreData failure on 10.3 Systems (Gracefully failing on unsupported OS version)
Re: dyld CoreData failure on 10.3 Systems (Gracefully failing on unsupported OS version)
- Subject: Re: dyld CoreData failure on 10.3 Systems (Gracefully failing on unsupported OS version)
- From: Shaun Wexler <email@hidden>
- Date: Fri, 2 Sep 2005 13:56:00 -0700
On Sep 2, 2005, at 4:50 AM, Berbie wrote:
With my kudos to Shawn Wexler and his solution on gracefully
failing with a unsupported OS version I used to have a successfull
solution for this problem...
http://www.cocoabuilder.com/archive/message/cocoa/2004/9/21/117989
...until I linked the CoreData frameworks into my app. Now even
before shawns trick fires up, the library loader (obviously) fails.
I know that this is a hot topic but does anyone see a chance to
solve this using a "new" aproach that I didn't spot yet?
If it doesn't constitute the bulk of your app, encapsulate all of
your CoreData code into a loadable bundle. Move all existing methods
which call CoreData into separate source files, as categories on
their current classes. Add those source files to your bundle
target. Load the CoreData bundle "plug-in" at app launch; it will
return FALSE if the bundle failed to load, but you should perform
your system-version check first and abort the launch if necessary.
An easier approach is to move ALL of your code to a loadable bundle,
except for the NSApplication subclass/code which checks for system
version, or do it all from within main().
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden