Ah...  Ok.  So I guess one question I have is, how can I still make use
of a property for a getter when using an ivar (on the heap)?

  @interface Reflector ()
  @property (nonatomic, readonly) double *ks;
  @end

  @implementation Reflector {
      double *_ks[11];
  }

The compiler tells me the type doesn't match, and it seems I have to do this 
instead:

  -(double *)ks {
    return (double *)_ks;
  }

Is there a way to get a property to get autogenerated but use that array?

...

And lastly, if I do:

  -(instancetype)initWithKs:(double *)ks rms:(NSUInteger)rms {
      if (self = [super init]) {
          _rms = rms;
          memcpy(_ks, ks, sizeof(double) * 11);
      }
      return self;
  }

do I need to free the memory in dealloc?

Patrick J. Collins
http://collinatorstudios.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/objc-language/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to