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 <rm...@latencyzero.com> 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
> rm...@latencyzero.com
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to