• 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: Adding to-many objects programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding to-many objects programmatically


  • Subject: Re: Adding to-many objects programmatically
  • From: mmalc Crawford <email@hidden>
  • Date: Sat, 16 Jan 2010 19:29:34 -0800

On Jan 16, 2010, at 12:17 am, Roland King wrote:

> Cast to the actual type before calling the method.
> Instead of [ managedObject method1 ]
> do
> [ (Employee*)managedObject method1 ]
>
No; the OP stated, "I don't use custom classes", so this won't work.
Follow the pattern described in the documentation:
	<http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW1>

mmalc

_______________________________________________

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

References: 
 >Adding to-many objects programmatically (From: Jenny M <email@hidden>)
 >Re: Adding to-many objects programmatically (From: Jenny M <email@hidden>)
 >Re: Adding to-many objects programmatically (From: mmalc Crawford <email@hidden>)
 >Re: Adding to-many objects programmatically (From: Jenny M <email@hidden>)
 >Re: Adding to-many objects programmatically (From: Roland King <email@hidden>)

  • Prev by Date: NSURLRequest and NSOperationQueue
  • Next by Date: Re: NSDatePicker 24 hour clock (Daniel Wambold)
  • Previous by thread: Re: Adding to-many objects programmatically
  • Next by thread: NSTextField sendActionOn:
  • Index(es):
    • Date
    • Thread