• 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
return pointer to a 2d aray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: return pointer to a 2d aray
      • From: David Spooner <email@hidden>
  • Prev by Date: Licensing my Application
  • Next by Date: Re: drawing an array of pixels to the screen
  • Previous by thread: [Moderator] Re: Licensing my Application
  • Next by thread: Re: return pointer to a 2d aray
  • Index(es):
    • Date
    • Thread