Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
June 25, 2017, 12:10:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: Exercise 15.6  (Read 1105 times)
Hesadanza
Newbie
*
Posts: 28


« on: February 26, 2012, 08:21:15 PM »

Seems pretty straightforward.  Am I missing something?

Code: (Objective-C)
-(BOOL) removeName: (NSString *) theName
{
    NSMutableArray *results = [self lookupAll:theName];
   
    if ([results count] == 1)
    {
        [self removeCard:[results objectAtIndex:0]];
        return YES;
    }
    else return NO;
}
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #1 on: February 27, 2012, 10:31:36 AM »

No, you're not missing anything!  Smiley

Cheers,

Steve
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 classroomM.com. All rights reserved.