Bug? Unrecognized selector

daxydoggie

Member
Licensed User
Help Erel!!!

I keep getting the following exception when one of my layout is being loaded.
I have attached an extract of the issue bits of the project in a zip for you to see if there is anything wrong.
I have slimmed down the project, there are many other pages/bils, and the more complex ones seem to suffer most.
The bridge also seems to shut down all the time too.
I am using the latest beta b4i, the remote complier and an iphone4 with ios7.1.2.

Copying updated assets files (15)
Application_Start
Error occurred on line: 27 (mainmenu)
-[__NSCFConstantString objectForKeyedSubscript:]: unrecognized selector sent to instance 0x3b176160
Stack Trace: (
CoreFoundation <redacted> + 154
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 202
CoreFoundation <redacted> + 706
CoreFoundation _CF_forwarding_prep_0 + 24
RiverRecorder +[B4IBarButtonItemWrapper buildBarButton::] + 92
RiverRecorder +[B4IPage buildPage:::] + 1350
RiverRecorder -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 988
RiverRecorder -[B4ILayoutBuilder loadLayout:::] + 2240
RiverRecorder -[B4IPanelWrapper LoadLayout::] + 148
RiverRecorder -[b4i_mainmenu _show] + 1052
RiverRecorder -[b4i_main _application_start:] + 444
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 282
RiverRecorder +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1788
RiverRecorder -[B4IShell runMethod:] + 496
RiverRecorder -[B4IShell raiseEventImpl:method:args::] + 1982
RiverRecorder -[B4IShellBI raiseEvent:event:params:] + 1332
RiverRecorder __33-[B4I raiseUIEvent:event:params:]_block_invoke + 74
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 254
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1300
CoreFoundation CFRunLoopRunSpecific + 522
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 138
UIKit UIApplicationMain + 1136
RiverRecorder main + 108
libdyld.dylib <redacted> + 2
)
Application_Active
 

Attachments

daxydoggie

Member
Licensed User
I see a problem with the layout file. Top Right #2 button is not filled correctly. How did you create this layout? With v2.0 or v1.8?
Thanks for the speedy response.
The layouts were originally b4a, then used bal2bil, then used v1.8 initially, but couldn't wait to use the new beta ide, so have been using that to tweak the layouts etc.
 

daxydoggie

Member
Licensed User
Did this error happen with v1.8 as well? Or is it new in v2.0?
To be honest I didnt do much with the converted b4a layouts in 1.8, just got the project structure together, ive just tried loading the attached project into 1.8 but says that there may be problems as its a newer version.
Back in the 2.0 IDE/designer, I see what you mean about the top right #2 button, not the same as the others, if you then put some text in the other buttons, say#3, then delete the text, it then is the same as the problem #2 one, and so on if you do this to other top right buttons.
 

daxydoggie

Member
Licensed User
This explains it. I will add a check to protect against this case (you shouldn't be able to edit the text right to the bar buttons).
Thanks Erel, in the meantime if you do edit the buttons (by mistake!), its just a case of creating a new layout and copying the views and scripts.
 
Top