I try [eventArray value], but nothing - I get it 78999 3451237 3451237
but must be 90
NSEntityDescription * entity = [NSEntityDescription EntityForName: @ Managed Object Contains in "Events": app.managedObjectContext]; NSFetchRequest * request = [[NSFetchRequest alloc] init]; [Request setEntity: unit]; NSSortDescriptor * sortDescriptor = [[NSSortDescriptor alloc] initWithKey: @ "Price" climbs: No]; NSArray * Sort descriptor = [NSArray arrayWithObject: sortDescriptor]; [Request Associate Circuit: Sort Descriptor]; [Sortedipitre release]; NSMutableArray * mutableFetchResults = [[app.managedObjectContext executeFetchRequest: Request Error: & amp; Error] mutableCopy]; If (MutableFetchResults) {} [Self Set Event Hourly: mutableFetchResults]; Event = [event array object endx: 3]; NSNumber * info = [Event value]; Printf ("\ n% d", [Event value]); [MutableFetchResults release]; [Request release];
I assume that the event
variable here: < / P>
event = [event array object endx: 3];
is an NSManagedObject whose existence is an interactive feature named value
. If this is the case, then [Event value]
will return an NSNumber example and will not be an int or double, therefore, the row:
printf ("\ n% d ", [Event value]);
... will not print the dual value of the NSNP frequency again but rather the examples of memory will be displayed instead of a decimal representation. To log the actual value that you need to use:
printf ("\ n% d", [[event value] intValue]);
Comments
Post a Comment