AppDelegate not found

Please report bugs.

AppDelegate not found

Postby udo.killermann » Sat May 19, 2012 6:38 pm

Bernd,

I just started a new project, to pin down a problem I encountered in my last sample code. My Global contains only

Code: Select all
Event AwakeFromNib()
  Log(Bash("ls"))
End Event


If I look at the log I see the following:
Code: Select all
2012-05-19 19:30:38.000 bashLog[1136:60b] Unknown class 'AppDelegate', using 'NSObject' instead. Encountered in Interface Builder file at path /Users/udo/Desktop/Objective Basic/bashLog/build/Release/bashLog.app/Contents/Resources/en.lproj/MainMenu.nib.
2012-05-19 19:30:38.084 bashLog[1136:60b] Applications
Library
Network
System
Users
Volumes
bin
cores
dev
etc
home
mach_kernel
net
private
sbin
tmp
usr
var


ls runs as expected, but the previous lines keep me wondering if there is an error in the project templates. Why is there a need to have an AppDelegate defined when using Bash()?

Regards
Udo
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: Bash isn't working as expected

Postby udo.killermann » Sat May 19, 2012 6:52 pm

The problem persists when I remove the Log line. Even an empty AwakeFromNib logs the message about the missing AppDelegate. I haven't seen this problem in the previous version.
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: Bash isn't working as expected

Postby berndnoetscher » Sun May 20, 2012 8:44 am

udo.killermann wrote:The problem persists when I remove the Log line. Even an empty AwakeFromNib logs the message about the missing AppDelegate. I haven't seen this problem in the previous version.


It is delcared in the default xib files, which is used for new projects. For me it is no big problem, but any suggestions?
berndnoetscher
Site Admin
 
Posts: 280
Joined: Fri Feb 20, 2009 11:58 am

Re: AppDelegate not found

Postby udo.killermann » Sun May 20, 2012 7:51 pm

Bernd,

the issue can be seen in XCode:
Untitled 2.jpg
Untitled 2.jpg (28.78 KiB) Viewed 1799 times


You'll notice the warning sign on the window outlet. There seems to be at least one reference that can not been resolved.

I think, you could modify MainMenu.xib to resolve this issue. If I get an idea how I'll post it.

Udo
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: AppDelegate not found

Postby berndnoetscher » Mon May 21, 2012 9:02 am

udo.killermann wrote:Bernd,

the issue can be seen in XCode:
Untitled 2.jpg


You'll notice the warning sign on the window outlet. There seems to be at least one reference that can not been resolved.

I think, you could modify MainMenu.xib to resolve this issue. If I get an idea how I'll post it.

Udo


The problem is that AppDelegate is intended to be used in some cases, so it is better to provide it and not have to add it again.
The default xib of xcode provide it as well.
berndnoetscher
Site Admin
 
Posts: 280
Joined: Fri Feb 20, 2009 11:58 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests