...actually with this new lazy loading feature code like this

- (IBAction) showPreferences:(id)sender
{
    if (!preferencesController) {
        preferencesController = [[PreferencesController alloc] init];
    }
    [preferencesController showWindow:self];
}

could probably just go away and become

- (IBAction) showPreferences:(id)sender
{
    [preferencesController showWindow:self];
}

with the alloc in the parent's init method.

 ...or am I mistaken? Or is that a bug?

cheers
--
Torsten
_______________________________________________

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