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

Nib loading and the externalNameTable: thing


  • Subject: Nib loading and the externalNameTable: thing
  • From: Sailor Quasar <email@hidden>
  • Date: Thu, 17 Jul 2003 20:51:39 -0400
  • Resent-date: Sat, 19 Jul 2003 03:18:27 -0400
  • Resent-from: Sailor Quasar <email@hidden>
  • Resent-message-id: <email@hidden t>
  • Resent-to: email@hidden

In NSNibLoading.h, a category of NSBundle declares the following nib loading methods:

+ (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary *)context withZone:(NSZone *)zone;
+ (BOOL)loadNibNamed:(NSString *)nibName owner:(id)owner;

loadNibNamed:owner: is documented specifically as being similar to loadNibFile:externalNameTable:withZone: using an NSDictionary with a single key of NSOwner.

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?

-- Sailor Quasar, just another player in The World
"Come with me in the twilight of the summer night for awhile"
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.

  • Prev by Date: Re: [ANN] Developer icons/resources
  • Next by Date: Re: iPod Playlist and Music Storage
  • Previous by thread: Nib loading and the externalNameTable: thing
  • Next by thread: Nib loading and the externalNameTable: thing
  • Index(es):
    • Date
    • Thread