Cannot Validate Property - ioValue
Cannot Validate Property - ioValue
- Subject: Cannot Validate Property - ioValue
- From: Chris Tracewell <email@hidden>
- Date: Mon, 26 Jul 2010 12:06:52 -0700
Using GC, 10.6 and XCode 3.2.2 - I just implemented a validation method for the "myQuantity" property of one of my models and cannot get it to work. The problem is with the ioValue, it locks up the app whenever I try to read it. After much frustration I simplified the validation to below an it still hangs...
-(BOOL)validateMyQuantity:(id *)ioValue error:(NSError **)outError
{
NSLog(@"%@",ioValue);
return YES;
}
If I use an integer or float formatter in the NSLog it works, but it just seems to be reading the memory address. This makes me think that the ioValue is not an object. However, the property "myQuantity" is an NSDecimalNumber and works fine throughout the app. The property validation is being triggered from an NSTableView column bound to an array - there are no value transformers or number formatters on the column.
Thanks
Chris_______________________________________________
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