Re: NSView Names
Re: NSView Names
- Subject: Re: NSView Names
- From: "Simson Garfinkel" <email@hidden>
- Date: Wed, 27 Feb 2002 18:22:59 -0500
>
>>>>>> Simson Garfinkel (SG) wrote at Wed, 27 Feb 2002 13:01:45 -0500:
>
SG> How do you get the name of a disembodied NSView that's in a NIB file?
>
SG> Speaking of which, how do you get the name of a window in a NIB file?
>
>
bound the window to outlet xxx, and use [xxx title] ;)
>
>
If you mean those names you entered in the NIB main window of IB, I
believe
>
they were deprecated as a way to distinguish objects really long long ago
>
(actually, I think it was even before NeXTSTEP PROGRAMMING was out, but I
>
might be wrong in that ;)
>
>
The appropriate API, I *GUESS*, survived as a way to access NIBbed objects
>
from Carbon, but I would not use it in Cocoa.
>
---
They are useful for naming objects. I just wrote a little SwitchingView and
I wanted the gizmo to automatically pick up the titles for the NSPopUp
button from the NIB names. Since I can't get at the NIB Names, I'm using the
Tool. Tip names instead. It's gross, but it works.
_______________________________________________
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.