• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DO crashes when returning NSError by reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >DO crashes when returning NSError by reference (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: App crashes in 10.4.9
  • Next by Date: Handle data disappearing out from underneath me
  • Previous by thread: DO crashes when returning NSError by reference
  • Next by thread: Re: DO crashes when returning NSError by reference
  • Index(es):
    • Date
    • Thread