Re: NSView Names
Re: NSView Names
- Subject: Re: NSView Names
- From: Chris Purcell <email@hidden>
- Date: Wed, 27 Feb 2002 22:58:47 +0000
I can think of two alternatives. One, add a "name" property to the
object. Two, set up a dictionary storing each window under its name.
Alas, both require modifying IB to some extent, either to change the
properties pane of the object (ickk) or to allow a nib to set up an
NSDictionary. (On the latter note, does anyone have code that does this,
and/or something better? I have made an attempt and would appreciate the
comparison.)
Before going further, would either of these actually help your situation?
Kritter
Thanks. I'm somewhat familiar with the concept of outlets.
However, I don't want to get the ids of an object. I want the object to
be
able to get the name that was assigned to it through the Interface
Builder's
NIB document window. That is, I want an object to be able to determine
its
own name.
Interface Builder 0.8 used named objects as a mechanism for learning
the id
of an object. This was used before the connection metaphor was
implemented.
However, the names are useful for an application that I am developing.
I'm
currently using the Tooltip NSString * as a proxy for the name, and then
having the object remove its Tooltip, but this is gross and awkward.
_______________________________________________
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.