![]() Just click on the openLink: method, and you're done: Now (last step!) a little window will pop up asking you to which method of your AppDelegate you want to connect the menu item. ![]() Move the mouse to the left until the pointer is over the "AppDelegate" item in the left part of IB: ![]() There click & hold on the small circle next to the description "selector" and drag the mouse to the left. Then head over to the connections pane at the right side of the IB window: There are several ways to do this, a simple one is first to click on the menu item you want to connect: openURL:[NSURL make a connection between your method and the menu item. ![]() Second, in the implementation section of your AppDelegate.m, enter these lines: -(IBAction)openLink:(id)sender ![]() It should work if you just create an empty Cocoa project in Xcode and follow these steps:įirst, in the interface section of your AppDelegate.h, enter this line: -(IBAction)openLink:(id)sender ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |