I think you are confusing a NSManagedObjectContext object with a NSManagedObject object.
I think you are confusing a NSManagedObjectContext object with a NSManagedObject object. This code segment: nextViewController = AfricanSwallowViewController alloc initWithNibName:@"AfricanSwallowView" bundle:nil; ((InstructionsViewController *)nextViewController). ByTheHusk = byTheHusk; ... looks like an attempt to hand of a NSManagedObjectContext from one view controller to another.
However, the attempted cast is probably throwing things off. It should probablylook like this: InstructionsViewController *nextViewController = AfricanSwallowViewController alloc initWithNibName:@"AfricanSwallowView" bundle:nil; nextViewController. ByTheHusk = self.
ByTheHusk; //assuming that byTheHusk is a property of the current view controller. I'm guessing that InstructionsViewController is a tableview controller using a NSFetchedResultsController and configured to fetch from the byTheHusk managed object context. If so, then getting a null return from this code: NSManagedObject *managedObject = self.
FetchedResultsController objectAtIndexPath:0; NSLog(@"%@",managedObject valueForKey:@"name" description); ... probably indicates that the fetchedResultsController finds no objects when it fetches. In any case, it would not log the byTheHusk object but just the first NSManagedObject instance that the fetch found. ByTheHusk7880:207 (null) Which means there are 207 entries.Is that right?
And that ByTheHusk is getting passed correctly? No.In this case ByTheHusk is the name of the app/library and the numbers are IIRC the line and block offsets in the object file. They have nothing to do with object being logged.
The (null) simply means that the statement managedObject valueForKey:@"name" description does not return an object of any kind. Not sure what your problem is but fixing the first bit of code above will help.
Instructive for sure! I will look at that. It is not being passed to a table view but a view with labels, and the desired result is: ` textFieldA1 = byTheHusk.
ObjectAtIndex0. Name textFieldA2 = byTheHusk. ObjectAtIndex0.
Typeofswallow textFieldB1 = byTheHusk. ObjectAtIndex1. Name textFieldB2 = byTheHusk.
ObjectAtIndex1. Typeofswallow` – roberthuttinger Jul 14 at 3:37 byTheHusk must be a NSArray because only arrays responds to objectAtIndex:. The objects in the array have to be your managed objects that have a key of typeofswallow that returns a string value.
– TechZen Jul 14 at 20:33.
I figured it out through some eduction and trial and error and error and error. But I got it! NSMutableArray* annotations=NSMutableArray alloc init; // Save our fetched data to an array self setEventArray: mutableFetchResults; mutableFetchResults release; request release; //NSLog(@"%d",eventArray count); for (int I = 0; I Latitude = latNum; double lonNum = eventArray objectAtIndex:i longitude doubleValue; theCoordinate.
Longitude = lonNum; //------------------------- MyAnnotation* tempAnnotation=MyAnnotation alloc init; tempAnnotation. Coordinate=theCoordinate; tempAnnotation. Title=NSString stringWithFormat:@"%@",eventArray objectAtIndex:i name; tempAnnotation.
Subtitle=NSString stringWithFormat:@"%@",eventArray objectAtIndex:i name; //------------------------- mapView addAnnotation:tempAnnotation; annotations addObject:tempAnnotation; } Put it in an array and roll over it... thanks all for the guidance!
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.