Re: Casting Object to NSArray
Re: Casting Object to NSArray
- Subject: Re: Casting Object to NSArray
- From: Chris Pavicich <email@hidden>
- Date: Fri, 27 Jun 2003 13:54:02 -0700
I am not sure why the following wouldn't work:
NSArray myArray;
Object foo = theMethodThatYouAreCalling();
if (foo instanceof NSArray) {
myArray = (NSArray)foo;
}
--CMP
On Friday, June 27, 2003, at 12:40, Goodbye Bill wrote:
There is a method (not mine) that I am calling from my code which
passes
back an "Object" and does this for EVERYTHING it returns (only one
public
method). The "Object" that I am trying to receive from it is actually
an
"NSArray" however I cannot figure out the syntax to get the generic
"Object"
object back to an "NSArray" object.
Any ideas?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.