On Nov 2, 2009, at 22:18, Kyle Sluder wrote:
On Mon, Nov 2, 2009 at 10:06 PM, Roland King r...@rols.org wrote:
Haven't there been several threads recently telling people *never*
to use
the if( saveError ) check because saveError may be set even if the
method
succeeds.
You can use it to
Hello all,
I'm getting a EXC_BAD_ACCESS error with the explanation Unable to
disassemble objc_assign_strongCast when I get to save the
NSManagedContext in one of my functions.
Using a breakpoint, I see that the debugger stops right after
0x904c6e76 +1414 call 0x90573efe
On Mon, Nov 2, 2009 at 9:47 PM, Leonardo Borsten
le...@prepressmiami.com wrote:
NSError **saveError;
[importContext save:saveError]; // --- crashes here
Think for a minute about what the parameter is trying to do: return an
object. To do that it needs to assign to a variable the
snip
Here's the normal way to do it:
NSError *saveError;
[importContext save:saveError];
Important nitpick:
NSError *saveError = nil;
[importContext save:saveError];
Methods that follow the NSError** convention are not required to
actually assign a value to the saveError pointer, so
Important nitpick:
NSError *saveError = nil;
[importContext save:saveError];
Methods that follow the NSError** convention are not required to
actually assign a value to the saveError pointer, so you'll want to
make sure to initialize saveError to nil since its a local variable.
On Mon, Nov 2, 2009 at 10:06 PM, Roland King r...@rols.org wrote:
Haven't there been several threads recently telling people *never* to use
the if( saveError ) check because saveError may be set even if the method
succeeds.
You can use it to determine if there is an error object available. If