Subject: Re: NIB Init method for window subclasses



On Tue, Mar 24, 2009 at 10:43 PM, Ryan Joseph
<thealchemistguild@xxxxxxxxx> wrote:
> I have a window in a NIB file which I have assigned a class in the "Class
> Identity" field and corresponding NSWindow subclass in code. According to
> the reference (which is copied below) I think I should be receiving a
> initWithCoder: message (there are only 3 options) but I never get it. Custom
> classes and NSViews are both receiving init and initWithFrame: respectively.
> Should NSWindow be getting this message when it is instantiated from a NIB?
> If not, how do I know when NSWindows are instantiated? Thanks for helping.

NSWindows are a special case. They receive their designated
initializer, which is initWithContentRect:styleMask:backing:defer:.
Override that one.

Mike
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)

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/maillists%40codeha.us

This email sent to maillists@xxxxxxxxx

...



Privacy