• 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 you init your instance variables in init method or outside the class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do you init your instance variables in init method or outside the class?


  • Subject: Re: do you init your instance variables in init method or outside the class?
  • From: Graham Cox <email@hidden>
  • Date: Thu, 19 Jul 2012 01:09:11 +1000

On 19/07/2012, at 12:55 AM, Alex Zavatone wrote:

> But doesn't the other way around, calling an undefined method in/on an object, instantly SIGABRT?


It throws an exception. How the exception is handled will vary. In an app it usually reaches the top and gets ignored, but sometimes it could end up calling abort(). I've seen a few exceptions deep in Cocoa do that lately (along with a rather helpful message stating that a piece of unreachable code was reached!).

--Graham


_______________________________________________

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

References: 
 >Re: do you init your instance variables in init method or outside the class? (From: Lee Ann Rucker <email@hidden>)
 >Re: do you init your instance variables in init method or outside the class? (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: KVG generic enough?
  • Next by Date: Re: Help with strange NSInvalidArgumentException
  • Previous by thread: Re: do you init your instance variables in init method or outside the class?
  • Next by thread: Re: do you init your instance variables in init method or outside the class?
  • Index(es):
    • Date
    • Thread