I'm an objective-c/cocoa neophyte, so forgive me if I am approaching this the wrong way.
I'm trying to access the "name" of a NSButton set in the interface builder inspector under Interface Builder Identiy from within the IBAction it attached to the button by calling [sender name].
The reason I need to do this is I want all the buttons on in my interface to use the same IBAction but with passing a different name string depending on which button is pressed. I realize I could write a unique IBAction for each button, but that seems much less elegant.
I know name isn't listed on the NSButton reference, but I figured it must be an inherited property. Is name a legitimate property of NSButton? Is this the write way to query the name set in interface builder?
Thanks for the help with my confusion.
I'm trying to access the "name" of a NSButton set in the interface builder inspector under Interface Builder Identiy from within the IBAction it attached to the button by calling [sender name].
The reason I need to do this is I want all the buttons on in my interface to use the same IBAction but with passing a different name string depending on which button is pressed. I realize I could write a unique IBAction for each button, but that seems much less elegant.
I know name isn't listed on the NSButton reference, but I figured it must be an inherited property. Is name a legitimate property of NSButton? Is this the write way to query the name set in interface builder?
Thanks for the help with my confusion.