• 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: Interface Builder/Custom Class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interface Builder/Custom Class


  • Subject: Re: Interface Builder/Custom Class
  • From: Andy Lee <email@hidden>
  • Date: Sat, 27 Apr 2002 21:35:32 -0400

At 6:08 PM -0700 4/28/02, Ian Reid wrote:
"MyTableView" implements the "initWithFrame" and "awakeFromNib" methods.
The "initWithFrame" method is not being called, whereas the "awakeFromNib" is.

I forget the exact rules about custom classes in IB, but I believe this is a case where -initWithCoder: is being called rather than -initWithFrame:.

Nib files contain archived objects, and unarchiving is an exception to the general rule about designated initializers. Upon unarchiving, -initWithCoder: is called.

--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Interface Builder/Custom Class (From: Ian Reid <email@hidden>)

  • Prev by Date: Re: Very Frustrated, any idea what's going on?
  • Next by Date: Re: Very Frustrated, any idea what's going on?
  • Previous by thread: Interface Builder/Custom Class
  • Next by thread: Re: Interface Builder/Custom Class
  • Index(es):
    • Date
    • Thread