home ‣ IBOutlet, IBAction

26 Mar 2008 · Tags: cocoa ← newer • 77 of 588older →

IBOutlet – special instance variable that references another object. A message can be sent through an outlet. Interface Builder recoganizes them.

IBAction – a special method triggered by user-interface objects. Interface Builder recognizes them.

@interface Controller
{
  IBOutlet id textField; // links to TextField UI object
}

- (IBAction)doAction:(id)sender; // e.g. called when button pushed

blog comments powered by Disqus