Can anybody help explain what the following method is

#pragma mark -
#pragma mark IBAction Methods
- (IBAction)interfaceSelected:(id)sender
{
self.currentInterface = [CWInterface interfaceWithName:[[supportedInterfacesPopup selectedItem] title]];
[self updateInterfaceInfoTab];
}


Please click on the link to see the full code. I just need an explanation of what "- (IBAction)interfaceSelected:(id)sender " method is doing.


Replies

The first line gets a CWInterface object for the interfaces whose name is based on the current selection in the popup menu and assigns that to the

currentInterface
property.

The second line calls the

-updateInterfaceInfoTab
method, which updates the UI based on the
currentInterface
property.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"