• 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: Creating NSViewController with -init.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSViewController with -init.


  • Subject: Re: Creating NSViewController with -init.
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 25 Mar 2014 08:29:00 -0700

On Mar 25, 2014, at 7:22 AM, Keary Suska <email@hidden> wrote:.
>
>
> The argument name tells it all: "nibNameOrNil" says that nil is a acceptable option. Why would it be named thus if a nil value would throw an exception?

Nobody said the initializer should throw an exception. But -loadView is documented to throw an exception if a nil nib name was passed to the designated initializer. There is no reason to assume -init will pass anything but nil to the designated initializer.

--Kyle Sluder
_______________________________________________

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: Creating NSViewController with -init.
      • From: Keary Suska <email@hidden>
References: 
 >Re: Creating NSViewController with -init. (From: Kyle Sluder <email@hidden>)
 >Re: Creating NSViewController with -init. (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Understanding Application crash
  • Next by Date: Re: Creating NSViewController with -init.
  • Previous by thread: Re: Creating NSViewController with -init.
  • Next by thread: Re: Creating NSViewController with -init.
  • Index(es):
    • Date
    • Thread