• 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: A CoreData Limitation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A CoreData Limitation?


  • Subject: Re: A CoreData Limitation?
  • From: Nicko van Someren <email@hidden>
  • Date: Tue, 17 May 2005 22:49:52 +0100

On 17 May 2005, at 22:13, mmalcolm crawford wrote:
On May 17, 2005, at 12:40 PM, Nicko van Someren wrote:

Then you make the Row object a custom subclass of NSManageObject and implement a custom implementation of various bits of key-value coding so that valueForKey: @"foo" actually does a fetch from the set of cells with a predicate of cell.column.name == "foo" and insertion with setValue:forKey: does the right thing too.


If you want to follow this pattern (and I'm still not sufficiently clear on the actual task to advise on that) then the appropriate mechanism here would be to use a fetched property:
<http://developer.apple.com/documentation/Cocoa/Reference/ CoreData_ObjC/Classes/NSFetchedPropertyDesc.html>

Yes, I thought about that. The problem is that the orginal request seemed to imply that columns needed to be dynamically created and deleted whereas fetched properties are attributes of the model entities and these can not be modified once there are any instances of the entities. Thus it does not look to me like you can create a fetched properties for a new column when it gets created.


    Nicko


_______________________________________________ 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: A CoreData Limitation?
      • From: mmalcolm crawford <email@hidden>
References: 
 >A CoreData Limitation? (From: Arthur Schuster <email@hidden>)
 >Re: A CoreData Limitation? (From: Nicko van Someren <email@hidden>)
 >Re: A CoreData Limitation? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Checkmark in a popup with bindings
  • Next by Date: Cocoa view design considerations
  • Previous by thread: Re: A CoreData Limitation?
  • Next by thread: Re: A CoreData Limitation?
  • Index(es):
    • Date
    • Thread