[baseten-users] Newbie question on app in tutorial

Dany Wu listsubs at wu.net.nz
Sun Nov 29 01:02:37 EET 2009


Fantastic - thanks Tuukka...

Here's the point where it stops, I have no idea what it means of course...

===============================
2009-11-29 12:00:15.116 CarLot[49830:a0f] An uncaught exception was raised
2009-11-29 12:00:15.131 CarLot[49830:a0f] *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BXSynchronizedArrayController)
2009-11-29 12:00:15.140 CarLot[49830:a0f] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (BXSynchronizedArrayController)'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x00007fff82003444 __exceptionPreprocess + 180
	1   libobjc.A.dylib                     0x00007fff82f470f3 objc_exception_throw + 45
	2   CoreFoundation                      0x00007fff82003267 +[NSException raise:format:arguments:] + 103
	3   CoreFoundation                      0x00007fff820031f4 +[NSException raise:format:] + 148
	4   Foundation                          0x00007fff807dfa92 _decodeObjectBinary + 2427
	5   Foundation                          0x00007fff807def85 _decodeObject + 208
	6   AppKit                              0x00007fff8314629c -[NSNibConnector initWithCoder:] + 406
	7   AppKit                              0x00007fff831460ee -[NSNibOutletConnector initWithCoder:] + 343
	8   Foundation                          0x00007fff807dfb0b _decodeObjectBinary + 2548
	9   Foundation                          0x00007fff807e0811 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229
	10  Foundation                          0x00007fff807e0d51 -[NSArray(NSArray) initWithCoder:] + 462
	11  Foundation                          0x00007fff807dfb0b _decodeObjectBinary + 2548
	12  Foundation                          0x00007fff807def85 _decodeObject + 208
	13  AppKit                              0x00007fff83145409 -[NSIBObjectData initWithCoder:] + 2046
	14  Foundation                          0x00007fff807dfb0b _decodeObjectBinary + 2548
	15  Foundation                          0x00007fff807def85 _decodeObject + 208
	16  AppKit                              0x00007fff83144af9 loadNib + 146
	17  AppKit                              0x00007fff83144059 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
	18  AppKit                              0x00007fff83143e91 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326
	19  AppKit                              0x00007fff83141413 NSApplicationMain + 279
	20  CarLot                              0x0000000100001899 main + 33
	21  CarLot                              0x0000000100001870 start + 52
)
terminate called after throwing an instance of 'NSException'
Program received signal:  “SIGABRT”.

On 29/11/2009, at 2:05 AM, Tuukka Norri wrote:

> Hi!
> 
> Dany Wu kirjoitti 28.11.2009 kello 13.19:
>> For one, according the tutorial NSImageView "data" binding is deprecated - unfortunately I can't quite figure out what else I was supposed to use. For now I have left the NSImageView object not bound to anything.
> Sounds strange – Cocoa Bindings Reference [1] doesn't mention anything about the binding having been deprecated, and Interface Builder also displays the binding. Did you get a compiler warning or something similar?
> The image view isn't particularly important in the tutorial. It's there to demonstrate that storing and fetching binary data is relatively easy.
> 
> [1] http://developer.apple.com/mac/library/documentation/Cocoa/Reference/CocoaBindingsRef/CocoaBindingsRef.html
> 
>> I have wired everything up per the tutorial and tried running the build - here's my next problem. The app itself froze - I see the icon on the dock and it says "Application Not Responding". Being a newbie I have no idea what's going on and where to start looking for problems. If I was to debug it where do I put the breakpoint?
> If the Dock or Activity Monitor tells that an application isn't responding, it means that the main thread's run loop hasn't run for a while (for Cocoa applications anyway). This can happen if a method gets called and does some intensive work, but since the tutorial application is in question, there might be some error condition that we haven't taken into account.
> 
> You can interrupt the application without placing a breakpoint by clicking the pause button in Xcode's debugger. The debugger shows the call stack in in a table view but is nice enough to allow selecting all the rows and copying them as plain text. If you send the stack traces, I can try to make a better guess on what's going on. The problem is probably caused by something happening in the main thread but it's probably better to send all of them anyway. You can select the active thread by clicking on the table view's header.
> -- 
> Best regards,
> Tuukka Norri
> MK&C
> 
> 
> 
> _______________________________________________
> baseten-users mailing list
> baseten-users at lists.basetenframework.org
> http://lists.basetenframework.org/mailman/listinfo/baseten-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20091129/f3ab27a7/attachment.htm>


More information about the baseten-users mailing list