IOSAD-72 static numberWithBool
authorDirk Zimmermann <dirk@pep-project.org>
Fri, 13 Apr 2018 11:03:41 +0200
changeset 570be19873c1c5b
parent 569 093fba08455c
child 571 d8ccf1b63dfd
IOSAD-72 static numberWithBool
pEpObjCAdapter/NSNumber+PEPRating.h
pEpObjCAdapter/NSNumber+PEPRating.m
     1.1 --- a/pEpObjCAdapter/NSNumber+PEPRating.h	Fri Apr 13 10:58:33 2018 +0200
     1.2 +++ b/pEpObjCAdapter/NSNumber+PEPRating.h	Fri Apr 13 11:03:41 2018 +0200
     1.3 @@ -18,4 +18,6 @@
     1.4  - initWithPEPRating:(PEP_rating)pEpRating;
     1.5  - (PEP_rating)pEpRating;
     1.6  
     1.7 ++ (NSNumber *)numberWithBool:(PEP_rating)pEpRating;
     1.8 +
     1.9  @end
     2.1 --- a/pEpObjCAdapter/NSNumber+PEPRating.m	Fri Apr 13 10:58:33 2018 +0200
     2.2 +++ b/pEpObjCAdapter/NSNumber+PEPRating.m	Fri Apr 13 11:03:41 2018 +0200
     2.3 @@ -20,4 +20,9 @@
     2.4      return self.intValue;
     2.5  }
     2.6  
     2.7 ++ (NSNumber *)numberWithBool:(PEP_rating)pEpRating
     2.8 +{
     2.9 +    return [[NSNumber alloc] initWithPEPRating:pEpRating];
    2.10 +}
    2.11 +
    2.12  @end