• 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: initWithCoder in Nib object loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWithCoder in Nib object loading


  • Subject: Re: initWithCoder in Nib object loading
  • From: Michael Watson <email@hidden>
  • Date: Fri, 27 Jun 2008 08:27:47 -0400

<http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_3.html >

All view objects are sent -initWithCoder:, but the "custom view" object does something extra. After the custom view object is unarchived, it creates your view subclass, sends the object an - initWithFrame: message, and then swaps itself for the subclass.


-- m-s

On 27 Jun, 2008, at 07:28, John Murphy wrote:

I notice that there are a couple different init methods used for nib loading. For instance, objects from the IB Library get an initWithCoder message, while custom view objects get an initWithFrame, and everything else gets an init. Why is this? Specifically, why a special initWithCoder technique? After all, isn't everything encoded?



_______________________________________________

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:
@bungie.org


This email sent to email@hidden

_______________________________________________

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: 
 >initWithCoder in Nib object loading (From: John Murphy <email@hidden>)

  • Prev by Date: initWithCoder in Nib object loading
  • Next by Date: Core data question in multiwindow doc app
  • Previous by thread: initWithCoder in Nib object loading
  • Next by thread: Re: initWithCoder in Nib object loading
  • Index(es):
    • Date
    • Thread