• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
newbie question initWithCapacity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie question initWithCapacity


  • Subject: newbie question initWithCapacity
  • From: Joost Rekveld <email@hidden>
  • Date: Sun, 5 Jan 2003 03:05:16 +0100

Hi,

I'm pretty sure I'm missing somehting completely obvious, but I'm
missing it totally nontheless:

I have my JFRCurve class (a class that does interpolation between
values), it is a subclass of NSObject, the implementation starts like
this:

#import "JFRCurve.h"


static NSString *JFRNoInterpolationCurveName =
@"JFRNoInterpolationCurve";
static NSString *JFRStepCurveName = @"JFRStepCurve";
static NSString *JFRLinearCurveName = @"JFRLinearCurve";
static NSString *JFRSinePowerCurveName = @"JFRSinePowerCurve";
static NSString *JFRSplineCurveName = @"JFRSplineCurve";


@implementation JFRCurve


+ (id)curveWithCapacity:(long)n {
return [[JFRCurve allocWithZone:[self zone]] initWithCapacity:n];
}


and if I do a syntax check the compiler says there are multiple
declarations for 'initWithCapacity' and informs me it will use the
version found in NSString.h instead.

I can't begin to see how this can happen, how can a method of
NSString.h be used in a class which has no relation with it whatsoever ?

I so completely don't understand that it is probably something stupid
as a typo ??
complete darkness here...

thanks,

Joost.


-------------------------------------------

Joost Rekveld
----------- http://www.lumen.nu/rekveld
----------- sonic light february 13 - 23, 2003
----------- http://www.sonicacts.com

-------------------------------------------

"The mystery of the world is the visible, not the invisible"
(Oscar Wilde)

-------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: newbie question initWithCapacity
      • From: Karl Kraft <email@hidden>
  • Prev by Date: Re: window loading sequence
  • Next by Date: Re: Checking OS Version with Cocoa
  • Previous by thread: Re: window loading sequence
  • Next by thread: Re: newbie question initWithCapacity
  • Index(es):
    • Date
    • Thread