On Fri, Nov 28, 2008 at 5:06 AM, Alexander Shmelev <[EMAIL PROTECTED]> wrote:
> - (id) init
> {
>        if (![super initWithWindowNibName:@"Dialog"])
>                return nil;
>        [self window];
> }

1) You never set self.  Inside an initializer, you must always set
self to the result of the calling super's designated initializer.
2) Why are you calling -window inside -init?  The whole point is that
the window controller doesn't load the nib until necessary (lazy
loading).

--Kyle Sluder
_______________________________________________

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

This email sent to [EMAIL PROTECTED]

Reply via email to