[MacRuby-devel] attr_accessor on NSManagedObject
Dr Nic Williams
drnicwilliams at gmail.com
Thu Jan 1 18:53:32 PST 2009
I subclassed a Core Data entity Recipe with PPRecipe < NSManaged
object, and created accessors for the fields:
class PPRecipe < NSManagedObject
attr_accessor :name, :desc, :type, :imagePath, :serves
end
but these fields now don't save or display correct after I create
objects, and restart the app for example.
If I remove the :name accessor, then the name field starts
appearing/working in the app again.
What do I need to do to get accessors working for NSManagedObject attributes?
Cheers
Nic
--
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *
More information about the MacRuby-devel
mailing list