• 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: Nib loading and the externalNameTable: thing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nib loading and the externalNameTable: thing


  • Subject: Re: Nib loading and the externalNameTable: thing
  • From: Sailor Quasar <email@hidden>
  • Date: Thu, 24 Jul 2003 11:39:33 -0400

On Tuesday, July 22, 2003, at 12:35 PM, James Quick wrote:
Now, I'm trying to pass a string of data to an object instantiated inside a nib that I don't have a direct reference to (no outlet for it in the file's owner). I could create the outlet to make it available, but first I want to know if there's a way to get this string to the object in its -awakeFromNib method. So I'm looking at this and I say, "hmm, an NSDictionary that's used for loading the nib. Can I use this?". I proceeded to search the developer docs for any reference whatsoever to the usage of the externalNameTable. Nothing. So I'm asking: can this dictionary be accessed from an awakened object's -awakeFromNib method, and if so can I specify a custom key/value pair along with NSOwner in that dictionary?
NSBundle is an abstract layer on top of that stuff. It does not document that method for use by end users, so you should avoid it. If I were you I would use
documented interfaces.

This is very much a valid argument, and in addition to your other comments I accept it as meaning that I don't necessarily Need to know the use of the lower-level method. However, there is such a thing as curiousity and I still hope that perhaps one of the Apple people on the list could at least satisfy that for me :). Given the usage of the @"NSOwner"=>File's Owner relationship in the dictionary created by the general-use method, one could almost believe that it would be possible to have more than just that referenced in the nib file for access to external objects. Of course, IB appears to have no support for this whatsoever, probably by no accident...

-- Sailor Quasar, High Codemaster of the Web, scourge of systems
cvs server: Updating Quasar/brain/caffiene
A pepsi
R coke
Email: email@hidden
_______________________________________________
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: Nib loading and the externalNameTable: thing (From: James Quick <email@hidden>)

  • Prev by Date: Re: NSAppleScript question
  • Next by Date: Re: NSAppleScript question
  • Previous by thread: Re: Nib loading and the externalNameTable: thing
  • Next by thread: encryption problems
  • Index(es):
    • Date
    • Thread