• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange exception raised in NSObjectParameterBinder during manual binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange exception raised in NSObjectParameterBinder during manual binding


  • Subject: Strange exception raised in NSObjectParameterBinder during manual binding
  • From: Michael Norris <email@hidden>
  • Date: Thu, 23 Aug 2007 21:39:37 +0200

Hi there

I got the following NSException raised today, which occurs in the midst of a manual binding. If I continue, the binding itself goes through fine, and works no problem. However, the exception worries me, and I'd like to know why I'm getting it. Any hints on working out where this is coming from, or how I can debug it? I'm not very au fait with turning registers into Cocoa objects while I'm in Assemblyland.

Stack Trace:

#0 0x92bfd014 in -[NSException raise] ()
#1 0x92bfce68 in +[NSException raise:format:] ()
#2 0x93c65a90 in -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] ()
#3 0x939c2c44 in -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] ()
#4 0x0002d474 in -[MyDocument windowControllerDidLoadNib:] (self=0x32b580, _cmd=0x90abdf1c, aController=0x33e1c0) at /Users/ michaelnorris/Development/Experiment Builder X/MyDocument.m:79
#5 0x9389497c in -[NSWindowController _windowDidLoad] ()
#6 0x938912f8 in -[NSWindowController window] ()
#7 0x938911e4 in -[NSWindowController showWindow:] ()
#8 0x9389e774 in -[NSDocument showWindows] ()
#9 0x9389cf20 in -[NSDocumentController openUntitledDocumentAndDisplay:error:] ()
#10 0x937a62e0 in -[NSDocumentController(NSInternal) _openUntitled] ()
#11 0x937a6214 in -[NSApplication _doOpenUntitled] ()
#12 0x937a29a4 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#13 0x937a2574 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#14 0x92be2af0 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#15 0x92be2950 in _NSAppleEventManagerGenericHandler ()
#16 0x914fd960 in aeDispatchAppleEvent ()
#17 0x914fd7fc in dispatchEventAndSendReply ()
#18 0x914fd654 in aeProcessAppleEvent ()
#19 0x9329d2e0 in AEProcessAppleEvent ()
#20 0x937a0cbc in _DPSNextEvent ()
#21 0x937a07a8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#22 0x9379ccec in -[NSApplication run] ()
#23 0x9388d87c in NSApplicationMain ()
#24 0x0000dfa4 in main (argc=3, argv=0xbffff8a8) at /Users/ michaelnorris/Development/Experiment Builder X/main.m:13


Here's the code snippet:

// The view wants 5 manual bindings
[view bind:@"backgroundColor" toObject:itemSetsController withKeyPath:@"selection.bgColour" options:nil]; // NO EXCEPTION
[view bind:@"textColour" toObject:itemSetsController withKeyPath:@"selection.textColour" options:nil]; // NO EXCEPTION
[view bind:@"fixationLocation" toObject:itemsController withKeyPath:@"selection.fixationLocation" options:nil]; // EXCEPTION RAISED
[view bind:@"fixationLocationMode" toObject:itemsController withKeyPath:@"selection.fixationLocationMode" options:nil]; // EXCEPTION RAISED
[view bind:@"hasFixationScreen" toObject:itemSetsController withKeyPath:@"selection.hasFixationScreen" options:nil]; // EXCEPTION RAISED


The view exists, the bindings exist, and the controllers exist. Odd.

Thanks
Michael
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Strange exception raised in NSObjectParameterBinder during manual binding
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Drawing text with alpha
  • Next by Date: Cocoa programming position available
  • Previous by thread: Re: Uppercasing text as it is entered
  • Next by thread: Re: Strange exception raised in NSObjectParameterBinder during manual binding
  • Index(es):
    • Date
    • Thread