• 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
NSMutableArray Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableArray Question


  • Subject: NSMutableArray Question
  • From: John Mullins <email@hidden>
  • Date: Fri, 31 Oct 2003 02:06:35 -0600

Hey,
This is a dumb question but I haven't found any good examples of this
on the internet, and I learn best by example than reference.

I have a class...

@interface Sample : NSObject {
AudioFilePlayID mPlayID;
}

@end

And I would like to make an NSMutableArray of a group of Sample
classes. I can't really figure out how to make an NSMutableArray with
objects. And how would I go about iterating through them.

And once I have like ObjectAtIndex: how do I call mPlayID from it?? I
need to pass mPlayID as a reference.. like &sample.mPlayID would be in
C.... to a method.

Know it's not a very good question ... but I can't find any good
examples of this anywhere.

Thanks...
John Mullins
_______________________________________________
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: NSMutableArray Question
      • From: Andreas Mayer <email@hidden>
    • Re: NSMutableArray Question
      • From: Roarke Lynch <email@hidden>
  • Prev by Date: Re: Timing of window miniaturization?
  • Next by Date: XCode or code problems?
  • Previous by thread: Re: Freelance programming
  • Next by thread: Re: NSMutableArray Question
  • Index(es):
    • Date
    • Thread