• 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: Unable to disassemble objc_assign_strongCast
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to disassemble objc_assign_strongCast


  • Subject: Re: Unable to disassemble objc_assign_strongCast
  • From: Bryan Henry <email@hidden>
  • Date: Tue, 03 Nov 2009 00:54:41 -0500

<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 you'll want to make sure to initialize saveError to nil since its a local variable. Wouldn't want to be checking against undefined garbage later, especially if you have something like a "if (saveError)" check.

- Bryan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Unable to disassemble objc_assign_strongCast
      • From: Roland King <email@hidden>
References: 
 >Unable to disassemble objc_assign_strongCast (From: Leonardo Borsten <email@hidden>)
 >Re: Unable to disassemble objc_assign_strongCast (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: Unable to disassemble objc_assign_strongCast
  • Next by Date: Re: Commandline Tool Help - NSDistantObject and NSConnection
  • Previous by thread: Re: Unable to disassemble objc_assign_strongCast
  • Next by thread: Re: Unable to disassemble objc_assign_strongCast
  • Index(es):
    • Date
    • Thread