• 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: bundleForClass in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bundleForClass in Swift


  • Subject: Re: bundleForClass in Swift
  • From: Rick Mann <email@hidden>
  • Date: Sat, 18 Oct 2014 20:34:44 -0700

I realize, in this case, I should be loading in loadWindow(), but it still seems problematic.

> On Oct 18, 2014, at 20:25 , Rick Mann <email@hidden> wrote:
>
> In an NSWindowController subclass init method, I want to call -loadNibNamed:owner:topLevelObjects, but that requires I have a bundle. I can get the main bundle, but I'd rather get the bundle for this class (makes it useable in unit tests).
>
> But, inside an init method, I'm not allowed to reference self until super.init is called. So, how do I do this?
>
> --
> Rick Mann
> email@hidden
>
>
>
> _______________________________________________
>
> 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


--
Rick Mann
email@hidden



_______________________________________________

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: 
 >bundleForClass in Swift (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Subclassing NSWindowController in Swift
  • Next by Date: Re: bundleForClass in Swift
  • Previous by thread: bundleForClass in Swift
  • Next by thread: Re: bundleForClass in Swift
  • Index(es):
    • Date
    • Thread