• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NIB Init method for window subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NIB Init method for window subclasses


  • Subject: Re: NIB Init method for window subclasses
  • From: Ryan Joseph <email@hidden>
  • Date: Wed, 25 Mar 2009 21:36:16 +0700

That explains it, Thank you Mike.

On Mar 25, 2009, at 9:26 PM, Michael Ash wrote:

On Tue, Mar 24, 2009 at 10:43 PM, Ryan Joseph
<email@hidden> 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 (email@hidden)

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:
This email sent to email@hidden

Regards, Josef

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >NIB Init method for window subclasses (From: Ryan Joseph <email@hidden>)
 >Re: NIB Init method for window subclasses (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: NIB Init method for window subclasses
  • Next by Date: Re: Overriding -dealloc on any object
  • Previous by thread: Re: NIB Init method for window subclasses
  • Next by thread: Re: NIB Init method for window subclasses
  • Index(es):
    • Date
    • Thread