• 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
Re: NSArray and Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray and Objects


  • Subject: Re: NSArray and Objects
  • From: Roarke Lynch <email@hidden>
  • Date: Tue, 19 Aug 2003 01:19:37 -0400

On Monday, August 19, 2002, at 03:35 AM, malcom wrote:

Hello,
I have created an NSArray with NSColor objects.
Now i would to set a color with an element of this array, but the compiler said to me:
"incompatible types" (method ObjectAtIndex -> return an Object).
How can i solve the problem?
Daniele

I hope that the ObjectAtIndex is a typo, the 'O' should be lowercase. But you would set the color via [[yourColorArray objectAtIndex:x] set], or an object retrieval method similar to that. But a snipit of code might point out why you are getting and incompatible types message.

Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
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.

  • Prev by Date: Re: Initializing an NSView derivative's variables...
  • Next by Date: Re: Memory Management
  • Previous by thread: Re: Initializing an NSView derivative's variables...
  • Next by thread: Re: Memory Management
  • Index(es):
    • Date
    • Thread