On Nov 28, 2008, at 11:41 PM, Mikael Wämundson wrote:
But I want the number of objects to be part of a text string ("The
number of students is: "). Thus I put this code into
myDocument.m:
-(NSString *) numberOfStudents
{
return [NSString stringWithFormat:@"The number of students is: %@",
On Nov 28, 2008, at 2:49 PM, j o a r wrote:
I think that it would be more straight forward and efficient to
write that:
[NSString stringWithFormat:@"The number of students is: %lu",
((unsigned long)[theStudentArrayController count])];
Crap, typo: You'd get the count from the array, and
On Nov 28, 2008, at 11:41 PM, Mikael Wämundson wrote:
-(NSString *) numberOfStudents
{
return [NSString stringWithFormat:@"The number of students is: %@",
[theStudentArrayController
valueForKeyPath:@"[EMAIL PROTECTED]"]];
}
I think that it would be more straight forward and efficient t