discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading xibs


From: Ivan Vučica
Subject: Re: Loading xibs
Date: Thu, 12 May 2011 18:19:22 +0200

Hi!

Based on your comments below, I've pasted a new version in the same place:
http://dl.dropbox.com/u/8559454/zcode-xib-crash.tar.gz

This one was tested under OS X to run without runtime warnings/exceptions from Cocoa. 

On Thu, May 12, 2011 at 09:01, Fred Kiefer <fredkiefer@gmx.de> wrote:
Thank you for this stripped down example code. I had to change just one call to a property into a method call and then it compiled perfectly for me (OK, there are two missing methods warnings, that you should look into, but nothing serious)

Which property? I thought I killed 'em all :-)
 
Feel free to ignore compiler warnings; the code for switching inspectors and editors is never called since the outline view is always empty.

Next I tried to run the code and it just worked, loaded up a menu and some sort of file dialogue. It complained about connections it could not establish:

2011-05-12 08:48:09.186 Zcode[5135] Error while establishing connection <IBOutletConnection: 0x11641e0>: data source does not respond to outlineView:isItemExpandable:
2011-05-12 08:48:09.220 Zcode[5135] Error while establishing connection <IBOutletConnection: 0x11645a0>: Data Source doesn't respond to numberOfRowsInTableView:

This is due to your stub definition of the class ProjectDetailListDataSource.

Fixed!
 
I also had a look into your XIB file and it is the older format, this means even before the recent change to XIB loading it should have been possible to load this file.

As it works for me, but fails for you you will have to do what you should have done right from the start: Send me the back trace of the error you are getting. Most likely you are one a more fragile architecture and we have some sloppy code in there that only fails on certain machines. Could you please run the application in gdb and report back the back trace you get? My favourite way of doing this is openapp --debug, but I am rather old fashioned.

I'll post it as soon as I get a chance to run this under Linux/GNUstep.

I looked at it yesterday, and it may indeed be unrelated to xib loading; something in the xib might be triggering a GNUstep bug elsewhere, but I'm not sure.


PS: As for the gcc version hard coding in GNUmakefile.preamble, this is a ProjectCenter bug and it should best be reported in our bug tracker to get the attention of the ProjectCenter maintainers.

Actually, I'm no longer trying to use ProjectCenter; the compiler is picked by ./configure in actual Zcode. Nothing to worry about, I just forgot to remove this from this stripped piece of code.

-- 
Ivan Vučica
ivan@vucica.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]