Nib loading and the externalNameTable: thing
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: Tue, 22 Jul 2003 10:00:35 -0400
- Resent-from: Sailor Quasar <email@hidden>
- Resent-message-id: <email@hidden t>
- Resent-to: email@hidden
I've sent this before and gotten no answer; I intend to try once more.
Does Anyone know anything about this?
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.