• 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: Core Data and @count keypath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and @count keypath


  • Subject: Re: Core Data and @count keypath
  • From: GbT <email@hidden>
  • Date: Thu, 9 Feb 2006 14:54:32 +0100

My first question was:
I have an Author entity displayed... for every author I'd
like to display how many books they wrote, so my relationship would
be: Author-->>Books.

>From what someone wrote, I should bind the value property to
AuthorArrayController - arrangedObjects - books.@count, but this
doesn't work, it gives me the error:

*** NSRunLoop ignoring exception '[<_NSFaultingMutableSet 0x3c5d30>
addObserver:forKeyPath:options:context:] is not supported. Key path:
@count' that raised during posting of delayed perform with target
37e980 and selector 'open:'

The selector open is related to the drawer attached to the window...
but the addObserver
thing isn't clear to me...

2006/2/9, GbT <email@hidden>:
> Thanks very much!
>
> Any ideas on my first question? :)
>
> 2006/2/9, Jim Correia <email@hidden>:
> > On Feb 9, 2006, at 7:27 AM, GbT wrote:
> >
> > > Should I subclass NSTableColumn anyway? I think so because I can't put
> > > my custom nscell directly in interface builder... right?
> >
> > Even if you couldn't set it up directly in IB, I think subclasses is
> > overkill here. In this situation I'd just wire up the cell
> > programatically in -awakeFromNib or -windowDidLoad.
> >
> > But you can set up the custom cell in IB. First drag a
> > NSTextFieldCell to your column, select the cell via the configuration
> > widget in the top right of the column header, and set its custom
> > class as usual.
> >
> > Jim
> >  _______________________________________________
> > 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
> >
>
 _______________________________________________
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

References: 
 >Core Data and @count keypath (From: GbT <email@hidden>)
 >Re: Core Data and @count keypath (From: "John R. Timmer" <email@hidden>)
 >Re: Core Data and @count keypath (From: GbT <email@hidden>)
 >Re: Core Data and @count keypath (From: Chris Hanson <email@hidden>)
 >Re: Core Data and @count keypath (From: GbT <email@hidden>)
 >Re: Core Data and @count keypath (From: Jim Correia <email@hidden>)
 >Re: Core Data and @count keypath (From: GbT <email@hidden>)

  • Prev by Date: Re: Core Data and @count keypath
  • Next by Date: [solved] my text goes under a the scrollers....
  • Previous by thread: Re: Core Data and @count keypath
  • Next by thread: Re: Core Data and @count keypath
  • Index(es):
    • Date
    • Thread