• 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
bindings screwup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bindings screwup


  • Subject: bindings screwup
  • From: Paul Forgey <email@hidden>
  • Date: Thu, 6 Apr 2006 18:25:10 -0700

I've got an object whose base object observes itself for certain keys. When these keys are changed, it calls a routine to do something with the object's current state which may return NO for failure. If that happens, the object asks a datasource to reload it's information. The object knows when that's happening so the observer doesn't cause a loop.

The intended effect is for this to happen either via programatic or UI caused change, so a validation method is not the place to put this logic.

If this sounds weird, it's because the idea is to keep the object in sync with a remote database entity.

Given an array of these objects, things work just fine when editing in a table view.

I also have the selection.keyname's from an NSTreeController bound to edit fields in a detail view. If the object decides to reload itself after editing a field here, the field is not refreshed in the UI until the selection changes.

When this happens, perhaps not coincidentally I usually (but not always) get this message out my console log:
2006-04-06 18:11:19.578 Administration Console[1953] *** Assertion failure in -[NSEvent charactersIgnoringModifiers], AppKit.subproj/ NSEvent.m:911
2006-04-06 18:11:19.578 Administration Console[1953] Exception raised during posting of notification. Ignored. exception: Invalid message sent to event "NSEvent: type=CursorUpdate loc=(331,328) time=10843.4 flags=0x9 win=0 winNum=4275 ctxt=0xc5d7 evNum=0 trackNum=-4 userData=0xffffffff"


Where do I start looking?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: bindings screwup
      • From: Paul Forgey <email@hidden>
  • Prev by Date: Re: vector of bools
  • Next by Date: Change text size in NSTables
  • Previous by thread: Re: Pop up window ala msn messenger
  • Next by thread: Re: bindings screwup
  • Index(es):
    • Date
    • Thread