Re: NSArray and Objects
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.