Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Howiieque

macrumors regular
Original poster
Feb 1, 2009
120
0
hi everyone.
both UIView and NSView conform to the NSCoding Protocol.

i subclass both of them and make a instance in the IB respectively in two projects.

mac:
1. initWithFrame: was invoked
2. awakeFormNib: was invoked
(initWithCoder: was NOT)

iphone:
1. initWithCoder: was invoked
2. awakeFromNib: was invoked
(initWithFrame: was NOT)

i think the iphone loading process makes sense. since the view is stored in the nib file, when it get unarchived, initWithCoder: is get caller.
could someone explain the difference.
thank you in advance.
 
thank you very much. especially the recommendation of The Object Loading Process section. things are so much clear now. :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.