Hi,
Problem A,
Yes, all classes are set correctly in the data modeller.
Also, regarding problem B, this is getting stranger.
If I set the type of the variable to int 32 in the modeller and NSNumber in
the class and then assign it a value using [entity value:forKey] it works
just fine. But if I
Hi,
you need to add a NSNumberFormatter to the text field. Number/String
conversion does not happen automatically.
Volker
Am 08.10.2009 um 13:49 schrieb Rui Pacheco:
Hi,
Problem A,
Yes, all classes are set correctly in the data modeller.
Also, regarding problem B, this is getting
True, that seems to be the problem.
Is this new? I've another NSTextField bound to a property of type NSNumber
that works perfectly and I'm not doing any conversion. The one that works
was added while I was still using 10.5 and the one that doesn't was added
while using 10.6.
2009/10/8 Volker in
Hi,
I had to do that in 10.5 - I think - but that is vague memory
collected by my sieve-brain - it wasn't like that in 10.4.
Volker
Am 08.10.2009 um 15:07 schrieb Rui Pacheco:
True, that seems to be the problem.
Is this new? I've another NSTextField bound to a property of type
NSNumber
Hmmm.
My model now has one property that needs no conversion to go from
NSTextField to NSNumber and one that does.
I'll try to do some more research.
2009/10/8 Volker in Lists volker_li...@ecoobs.de
Hi,
I had to do that in 10.5 - I think - but that is vague memory collected by
my
Hi,
problem A:
have you made sure you have set the class in the data modeler
correctly for that ManagedObject? When googling for your error message
I do receive such problems that were fixed by setting the proper
custom class name.
Cheers,
Volker
On Wed, Oct 7, 2009 at 9:25 AM, Rui Pacheco rui.pach...@gmail.com wrote:
I am now seeing the error Failed to call designated initialiser on
NSManagedObject class '' when I created an object on the MOC or when I
fetch an object for editing. Step by step debugging showed that what seems
to
On Wed, Oct 7, 2009 at 12:13 PM, Rui Pacheco rui.pach...@gmail.com wrote:
Should overrideĀ -initWithEntity:insertIntoManagedObjectContext: ?
I would not recommend doing so. I was merely asking because it seemed
like that might be what you are doing, and if it was I would advise
against it.