• 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 Accessor method generation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Accessor method generation


  • Subject: Re: Core Data Accessor method generation
  • From: Scott Ellsworth <email@hidden>
  • Date: Wed, 7 Sep 2005 10:59:39 -0700


On Sep 7, 2005, at 9:52 AM, mmalcolm crawford wrote:


On Sep 7, 2005, at 6:54 AM, Don Willems wrote:


"You can use the Xcode data modeling tool to generate the code for accessor methods for any modeled property."
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/ Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154
But how?



<http://developer.apple.com/documentation/DeveloperTools/Conceptual/ XcodeUserGuide21/Contents/Resources/en.lproj/ 02_04_design_data_model/chapter_15_section_5.html#//apple_ref/doc/ uid/TP40001871-CH273-DontLinkElementID_75>

Keen - I had known about generating specific properties, but not about "You can use Xcode's New File Assistant ..."


A word of advice: do not generate your custom objects too early. Once you do generate them and start stuffing custom code, you need to be more careful about changing the data model. That said, once the data model _is_ nailed down, it is a lot easier to understand [foo propertyName] than [foo valueForKey:@"propertyName"] in code, and the regex is not that different.

Scott
_______________________________________________
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 Accessor method generation (From: Don Willems <email@hidden>)
 >Re: Core Data Accessor method generation (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: totally lost
  • Next by Date: Re: Weird Objective-C observation
  • Previous by thread: Re: Core Data Accessor method generation
  • Next by thread: another newbie question
  • Index(es):
    • Date
    • Thread