What Happens When a Nib File is Loaded
What Happens When a Nib File is Loaded
- Subject: What Happens When a Nib File is Loaded
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 15 May 2005 13:32:43 +0200
The document with the same name as the subject in
<file:///Developer/ADC Reference
Library/documentation/Cocoa/Conceptual/LoadingResources/index.html>
states:
There are three types of objects you can add to a nib file:
1. standard objects dragged from a palette into the design window;
2. subclasses of such objects; and
3. custom objects for which you have provided a custom subclass of
NSView.
What about instantiated subclasses of NSObject?
Then it says:
Therefore, when the nib file is loaded, initWithFrame: is not called
for either standard objects or custom subclasses of standard objects.
Well, what about subclasses of NSDateFormatter which can be "dragged
from a palette into the design window". There is no initWithFrame:, so
it is kind of difficult (or trivial) not to call this method.
Does the documentation mean "the designated initalizer is not called"
or does it wants to say "for subclasses of NSView initWithFrame: is not
called, for other objects the behaviour is not defined" ?
Anyway, Panther does call the initalizer of a subclass of
NSDateFormatter, Tiger does not.
Can somebody please dis-confuse me?
Kind regards,
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden