Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 3.68 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Cannot create BOOL from object of class NSWindow
  2. Cannot create BOOL from object <NSWindow: 0x7f883b44f770> of class NSWindow
  3.        
  4. - (void)awakeFromNib{    
  5.     [self showLoginSheet];
  6. }
  7.  
  8. - (void)showLoginSheet
  9. // User has asked to see the custom display. Display it.
  10. {
  11.     if (!self.loginSheet)
  12.         [NSBundle loadNibNamed:@"LoginSheet" owner:self];
  13.         //Check the myCustomSheet instance variable to make sure the custom sheet does not already exist
  14.  
  15.     [NSApp beginSheet: self.loginSheet
  16.        modalForWindow: [[NSApp delegate] window]
  17.         modalDelegate: self
  18.        didEndSelector: NULL
  19.           contextInfo: NULL];
  20. }
  21.        
  22. 2012-07-21 21:09:57.575 MingleLookBooks[15934:503] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot create BOOL from object <NSWindow: 0x7f883b44f770> of class NSWindow'
  23. *** First throw call stack:
  24. (
  25.     0   CoreFoundation                      0x00007fff91305f56 __exceptionPreprocess + 198
  26.     1   libobjc.A.dylib                     0x00007fff874b9d5e objc_exception_throw + 43
  27.     2   CoreFoundation                      0x00007fff91305d8a +[NSException raise:format:arguments:] + 106
  28.     3   AppKit                              0x00007fff9038a394 _NSBoolFromValue + 421
  29.     4   AppKit                              0x00007fff903b1c5a -[NSEditableBinder hiddenState] + 83
  30.     5   AppKit                              0x00007fff903b1bdf -[NSEditableBinder _hiddenStateWithMode:] + 41
  31.     6   AppKit                              0x00007fff90389eaa -[NSEditableBinder _setStatesImmediatelyInObject:mode:triggerRedisplay:] + 579
  32.     7   AppKit                              0x00007fff90389c60 -[NSEditableBinder _observeValueForKeyPath:ofObject:context:] + 123
  33.     8   AppKit                              0x00007fff901a1643 -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591
  34.     9   AppKit                              0x00007fff9019a959 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079
  35.     10  AppKit                              0x00007fff90190f73 loadNib + 322
  36.     11  AppKit                              0x00007fff90190470 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
  37.     12  AppKit                              0x00007fff9019038b +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
  38.     13  AppKit                              0x00007fff901902ce +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364
  39.     14  MingleLookBooks                     0x000000010ef0917a -[AppController showLoginSheet] + 138
  40.     15  MingleLookBooks                     0x000000010ef08ffb -[AppController awakeFromNib] + 43
  41.     16  CoreFoundation                      0x00007fff912fcfb1 -[NSObject performSelector:] + 49
  42.     17  CoreFoundation                      0x00007fff912fcf32 -[NSSet makeObjectsPerformSelector:] + 274
  43.     18  AppKit                              0x00007fff9019a9ff -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1245
  44.     19  AppKit                              0x00007fff90190f73 loadNib + 322
  45.     20  AppKit                              0x00007fff90190470 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
  46.     21  AppKit                              0x00007fff9019038b +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
  47.     22  AppKit                              0x00007fff901902ce +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364
  48.     23  AppKit                              0x00007fff9040106f NSApplicationMain + 398
  49.     24  MingleLookBooks                     0x000000010ef08f32 main + 34
  50.     25  MingleLookBooks                     0x000000010ef08f04 start + 52
  51. )
  52. terminate called throwing an exception(lldb)