• 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: What Happens When a Nib File is Loaded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What Happens When a Nib File is Loaded


  • Subject: Re: What Happens When a Nib File is Loaded
  • From: SA Dev <email@hidden>
  • Date: Sun, 15 May 2005 09:37:57 -0400


I believe you may be looking for the -awakeFromNib method, which is called on objects that are loaded from a nib file. Check the docs on that method - that's probably what's confusing you.




On May 15, 2005, at 7:32 AM, Gerriet M. Denkmann wrote:

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:
40silentalcove.net


This email sent to email@hidden


_______________________________________________ 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
References: 
 >What Happens When a Nib File is Loaded (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: FSCopyObjectAsync: useless and crippled
  • Next by Date: Inheritance from NSMutableArray
  • Previous by thread: What Happens When a Nib File is Loaded
  • Next by thread: Inheritance from NSMutableArray
  • Index(es):
    • Date
    • Thread