• 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
Can you @synthesize simple arrays?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can you @synthesize simple arrays?


  • Subject: Can you @synthesize simple arrays?
  • From: "Greg Robertson" <email@hidden>
  • Date: Mon, 17 Nov 2008 10:14:28 -0500

I have a couple of simple ivar arrays:

NSString   *myString[4];
NSInteger   myInteger[4];

How can I @synthesize these so I can access them with simple dot notation:

ie.  self.myInteger[2] = 100;

I have tried several ways to set them up in the @interface but I keep
getting compile errors. Could someone show me the proper @property or
is this not possible?

I would prefer to avoid NSArray if I can.


Thanks


Greg


P.S. Please excuse the cross post
_______________________________________________

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: Can you @synthesize simple arrays?
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: Re: Two arrays sharing the same adress space.
  • Next by Date: Re: Can you @synthesize simple arrays?
  • Previous by thread: Re: Opening Ports in Leopard
  • Next by thread: Re: Can you @synthesize simple arrays?
  • Index(es):
    • Date
    • Thread