Amazon.com Widgets Exercise 15.6
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 01, 2014, 11:44:58 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Programming in Objective-C, 4th edition
| |-+ Exercises
| | |-+ Chapter 15
| | | |-+ Exercise 15.6
Pages: [1] Go Down
Print
Author Topic: Exercise 15.6 (Read 531 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:



Login with username, password and session length

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 (c) 2009 classroomM.com. All rights reserved.