Re: DO crashes when returning NSError by reference
Re: DO crashes when returning NSError by reference
- Subject: Re: DO crashes when returning NSError by reference
- From: "Scotty's Lists" <email@hidden>
- Date: Sun, 8 Apr 2007 10:01:43 -0400
Charles,
Ed Baskerville has some source code that might help as an example.
From this blog entry,
<http://code.edbaskerville.com/2006/06/15/making-xgrid-synchronous/>
he appears to be using DO as you would like to: calling methods
through DO that return an NSError object reference.
The file DRMAASession.m has several methods that do this.
<http://code.edbaskerville.com/websvn/filedetails.php?
repname=XgridDRMAA&path=/trunk/framework/objc%
2FXgridDRMAASession.m&rev=13&sc=1>
Hope this helps,
Scotty
On Apr 7, 2007, at 4:05 PM, Charles Srstka wrote:
Okay, so I've got a tool that's being accessed via DO. The tool has
a bunch of methods that look like this:
- (BOOL)doSomethingWithSomeObject:(id)someObj error:(out NSError **)
error
{
[self doSomething:someObj];
return someConditionForSuccess;
}
The caller in the client app calls the method like this:
NSError *error = nil;
BOOL success = [helper doSomethingWithSomeObject:someObj
error:&error];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden