简体   繁体   中英

Control-drag to AppDelegate only

Xcode 6.1, OSX not ios, allows me to Control-drag from a button in MainMenu.xib to AppDelegate only. This is unfortunate for me because my IBAction must include view methods like [self setNeedsDisplay:YES] . I need to Control-drag it into my MyView file, which will tolerate them. This also makes more sense.

Control-dragging from the button to any file other than AppDelegate does nothing.

Identity Inspector > Class is set to MYView.

How can I make this work, and how does the fix work? Also, why is it now restricted to AppDelegate? Perhaps a timing issue?

Thanks ahead,

Nick

尝试将一个空对象从对象库拖动到您看到“ AppDelegate”的区域,然后选择它并将其类设置为“ MyView”,然后二次拖动到该对象以创建IBAction。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM