• 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
Re: ARC and NSObjectController bindings through file's owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC and NSObjectController bindings through file's owner


  • Subject: Re: ARC and NSObjectController bindings through file's owner
  • From: Sean McBride <email@hidden>
  • Date: Fri, 01 Aug 2014 13:33:22 -0400
  • Organization: Rogue Research Inc.

On Thu, 31 Jul 2014 09:26:27 -0700, Jerry Krinock said:

>> One thing I just noticed is that NSWindowController's 'document'
>property is not actually documented as KVO-compliant.  Maybe that's my
>problem... but I've been binding through it for over a decade now!
>
>That may well be the real problem, Sean.

Yup!  Seems like it is.

>In a similar situation, I solved the “bindings burp” (what I call that
>nasty message you copied from the console) by inserting *another* object
>controller into the bindings “path”, to control the *document*.

I've tried some similar permutations and they have 'fixed' the issue.  I have about 50 xibs to fix now, so want to be sure I do this correctly. :)  I now find myself questioning basic things. :)

NSWindowController's 'document' property is not documented as KVO-compliant, and neither is NSPersistentDocument's 'managedObjectContext' property.

Which parts of a binding's keypath have to be KVO-compliant?  If all parts, how can 'document' and 'managedObjectContext' even be in there at all?  Even in interstitial object controllers as you described?

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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: ARC and NSObjectController bindings through file's owner
      • From: Jerry Krinock <email@hidden>
    • Re: ARC and NSObjectController bindings through file's owner
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Trouble with services
  • Next by Date: Re: Alternative to NSRunningApplication launchDate?
  • Previous by thread: Re: Trouble with services
  • Next by thread: Re: ARC and NSObjectController bindings through file's owner
  • Index(es):
    • Date
    • Thread