• 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
Initializing an Array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Initializing an Array


  • Subject: Initializing an Array
  • From: "Michael P. Rogers" <email@hidden>
  • Date: Mon, 21 Jan 2002 16:18:47 -0600

Is it possible to initialize an instance variable array in Objective-C? PB doesn't like it when I attempt to do so in the interface section, i.e., code like this fails:

NSString * sayings[2] = {@"Do unto",@"others"};

TIA,

Michael
--
Dr. Michael P. Rogers
Office: 203G Shilling Hall
Phone: 217-424-6327 (W) 309-828-8655 (H) 309-825-6454 (C)
E-Mail: email@hidden

Web site: http://math.millikin.edu/
Astronomy Site: http://twincityamateurastronomers.org


  • Follow-Ups:
    • Re: Initializing an Array
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: NSSplitView size, how to change ?!
  • Next by Date: RunModalForWindow
  • Previous by thread: Re: NSWorkspace notification problems
  • Next by thread: Re: Initializing an Array
  • Index(es):
    • Date
    • Thread