FROM : Graham Cox
DATE : Thu May 15 03:02:41 2008
Actually I wonder if this could be a useful enhancement to IB? Say if
you've never edited the object's name from the default, but then drag-
connect an outlet to it, the label changed to the name of the outlet.
That would be a quick and easy way to see at a glance what object it
is *in terms of your own ivar identifiers*. If you edit it anyway,
before or after, it just uses your label.
Just an idea,
G.
On 15 May 2008, at 10:51 am, I. Savant wrote:
>> And if I want to refer by name to that instance in my code, what is
>> the name of the instance?
>
> Nothing. That is, not until you add an IBOutlet in whatever class
> you want to connect to that instance. Say "AppController" has an
> outlet called "thingController". You can then connect the
> AppController's someThingController outlet to the "Some Thing
> Controller" instance. Now, anywhere within your AppController class,
> you can send messages to the "Some Thing Controller" instance by its
> shiny new name:
DATE : Thu May 15 03:02:41 2008
Actually I wonder if this could be a useful enhancement to IB? Say if
you've never edited the object's name from the default, but then drag-
connect an outlet to it, the label changed to the name of the outlet.
That would be a quick and easy way to see at a glance what object it
is *in terms of your own ivar identifiers*. If you edit it anyway,
before or after, it just uses your label.
Just an idea,
G.
On 15 May 2008, at 10:51 am, I. Savant wrote:
>> And if I want to refer by name to that instance in my code, what is
>> the name of the instance?
>
> Nothing. That is, not until you add an IBOutlet in whatever class
> you want to connect to that instance. Say "AppController" has an
> outlet called "thingController". You can then connect the
> AppController's someThingController outlet to the "Some Thing
> Controller" instance. Now, anywhere within your AppController class,
> you can send messages to the "Some Thing Controller" instance by its
> shiny new name:






Cocoa mail archive

