My question:
Is it possible to use visual binding in such a case - if not, that info is imho missing in the “Using XIB storybook” wiki chapter. My solution is easy enough, but it took quite some time of trials and errors to find since the XCode books use the visual drag&drop approach.
[IBObject]
SomeDataController = public class( INSTableViewDataSource)
public
...
I do not find it anywhere in the designer. As mentioned, I fixed it for me by runtime assignment.
In XCode when I edit the XIB created by Elements I do not see the source files as I would, when I would just use XCode. I just see FileOwner which is the window main class in the main unit. This is all no severe problem right now, but I think it will bite some time, when I try to do something more fancy, like using the CoreData functions for example.
It would help if it is documented what is done when the source is “synchronized to XCode” to understand the concept better.
Another thing I wonder: When I do a Save (Command S) in XCode, Elements will not pick up the change automatically. I have to do a BuildAll. I also miss a function to launch XCode from the Elements IDE directly with the correct file loaded - through CrossBox this should be possible. (For some reason XCode does not even list the project under “Recent”)
I also found some things which may be helpful to other beginners like me:
In the XCode project the flag “Use Auto Layout” under Document editing should be off. Otherwise it is not possible to set Anchors and alignment to controls.
Sometimes after a change in the designer this error pops up in Elements: “Error 5 (ProcessXibs) An exception occurred on the server: Execution of “ibtool” failed with error code 1”
This error is caused by an incompatible setting in the XIB. To easily find the problem click in XCode on the alert symbol in the top left area and it will show you whats wrong.