Hello Patrick,

I don't know but I see weird the way you initialize the MyFilesOwner.. 

Normally I would do .. 

MyFieOwner * owner = [[MyFileOnwer alloc] iniWithNibName:@"Test" nibBundle:nil];

of course taking into mind that MyFileOnwer would be a NSViewController,  which 
in your example is not.


but your error is 
    
    [
        NSBundle
        loadNibNamed: @"TestNib.xib"
        owner:        owner 
    ];

it should be 

    
    [
        NSBundle
        loadNibNamed: @"TestNib"
        owner:        owner 
    ];
    

Gustavo

    





On May 12, 2010, at 8:35 PM, Patrick M. Rutkowski wrote:

> I'm so horribly confused about why the below sample project fails to
> load the object from "TestNib.xib".
> 
> I expect to print something like:
> loaded object: (<SOME_POINTER_HERE>)
> 
> But instead I just get:
> loaded object: (0x0)
> 
> Could someone help clue me in?
> 
> Test Project: http://www.rutski89.com/static/TestApp.zip
> 
> I could just be really tried today, did I make a silly type-o somewhere?
> -Patrick
> 
> 
> P.S.
> I tried changing the "main_object" property from assign to retain, but
> it didn't help.
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/gustavxcodepicora%40gmail.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to