How to make Interface Builder recognize IBOutlet / IBAction for new languages?

this is a theoretical question: suppose I came up with a wonderful new scripting language and want to make Cocoa bridge for this.

Is it possible to get Interface Builder to recognize a new language and automatically analyze the source code so that it can display IBAction and IBOutlet s, as is already done for Objective-C .h , RubyCocoa .rb and PyObjC .py , as well as AppleScriptObjC .applescript files? Or is it hardcoded in Interface Builder?

If possible, how can I do this and / or have a document?

+4
source share
1 answer

AFAIK this is not documented.

Matt Gallagher again sent a message to the interprocess message between Xcode and IB Communication between processes

Using these methods, you can disable something.

Another thought is to capitalize on what IB is already doing and generate a .h file with the appropriate IB markers for your chosen language - for example. write a .h file with the elements you want to open.

0
source

Source: https://habr.com/ru/post/1301244/


All Articles