• 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: undocumented "NSNibOwning" informal protocol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undocumented "NSNibOwning" informal protocol?


  • Subject: Re: undocumented "NSNibOwning" informal protocol?
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Fri, 8 Nov 2002 10:37:34 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Friday, Nov 8, 2002, at 10:16 US/Eastern, Jirtme Laurens wrote:


Le vendredi, 8 nov 2002, ` 13:53 Europe/Zurich, Clark S. Cox III a icrit :

[...]

any object can be the owner of a nib file (used in -[NSWindowController init... owner: object])
apparently, the owner can implement as NSDocument does

windowControllerWill/DidLoadNib:

I suspect [NSWindowController windowWill/DidLoad] asks the owner for such a message despite the doc says "default implementation does nothing"

No, the doc is correct, the NSDocument methods are called by - -[NSWindowController window]. Also, they are not called on the owner of the nib, they are called on the window controller's document.

Not at all, the windowControllerWillLoadNib messages are sent to the owner of the nib and not to the window controller's document, and this is exactly the heart of my question.

This can be proved with 10 lines of code.

Ahh, I see. If that is the case, then you should file a bug report. Either the behavior should be made to match the documentation, or the documentation the behavior. However, I wouldn't rely on this behavior (i.e. I wouldn't specify some other owner besides the NSDocument subclass instance for the document's nib), at least not until Apple makes up it's mind as to which is the "correct" behavior.



- -- http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iEUEARECAAYFAj3L2kcACgkQd6STocYT1xUidQCY5n7gtxPGb2zx7PFs1OY/8K9n
IgCffDktjBXjQ1SlwBCY+0DwaJbIdeE=
=JRiA
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: undocumented "NSNibOwning" informal protocol? (From: Jérôme Laurens <email@hidden>)

  • Prev by Date: RE: Problem with dynamic reconfiguration of a TableView?
  • Next by Date: Re: To all cocoa developers - new cocoa dev forum
  • Previous by thread: Re: undocumented "NSNibOwning" informal protocol?
  • Next by thread: Follow-up: Score view
  • Index(es):
    • Date
    • Thread