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.
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.