Thanks for that. I managed to get it to compile, but when I compile the standard program that B4i powers up with, I get the following errors:
Error occurred on line: 7 (Main)
Unknown command: 0
Stack Trace: (
CoreFoundation __exceptionPreprocess + 331
libobjc.A.dylib objc_exception_throw + 48
CoreFoundation +[NSException raise:format:] + 197
B4i Example -[B4IShell raiseEventImpl:method:args::] + 2258
B4i Example -[B4IShellBI raiseEvent:event
arams:] + 1625
B4i Example -[B4IStaticModule initializeModule] + 434
B4i Example -[b4i_main initializeStaticModules] + 67
B4i Example -[B4IShellBI raiseEvent:event
arams:] + 232
B4i Example __33-[B4I raiseUIEvent:event
arams:]_block_invoke + 50
libdispatch.dylib _dispatch_call_block_and_release + 12
libdispatch.dylib _dispatch_client_callout + 8
libdispatch.dylib _dispatch_main_queue_callback_4CF + 1290
CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
CoreFoundation __CFRunLoopRun + 2342
CoreFoundation CFRunLoopRunSpecific + 625
GraphicsServices GSEventRunModal + 62
UIKitCore UIApplicationMain + 140
B4i Example main + 112
libdyld.dylib start + 1
??? 0x0 + 1
)
Application_Start
I am running the latest version of X-Code and B4i v5.51, and MacBuilder v5.3
Line 7 is the orientation line...
'Code module
#Region Project Attributes
#ApplicationLabel: B4i Example
#Version: 1.0.0
'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
#iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
#iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
#Target: iPhone, iPad
#ATSEnabled: True
#MinVersion: 8
#End Region
JMB