return pointer to a 2d aray
return pointer to a 2d aray
- Subject: return pointer to a 2d aray
- From: Jason Horn <email@hidden>
- Date: Mon, 12 Nov 2007 17:28:18 -0500
Hi List,
On a related question to my last one, how do you return a pointer to a
2d array from an object's method? For example, the class below
contains an instance variable that is a 2d array.
Thanks,
- Jason
// MyClass.h
@interface MyClass : NSObject {
uint16_t pixels[480][640];
}
- (uint16_t **)pixels; // What goes here? This isn't right, I've
tried it.
@end
// MyClass.m
@implementation Image
- (uint16_t **)pixels // And what goes here?
{
return pixels;
}
@end
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden