Re: objectAtIndex quandry
Re: objectAtIndex quandry
- Subject: Re: objectAtIndex quandry
- From: j o a r <email@hidden>
- Date: Sat, 22 May 2004 11:17:46 +0200
On 2004-05-22, at 10.58, James Stroud wrote:
>
Here is a clarification for the skeptics. I made a class (properly
>
hooked up to the NIB, I assure you). The files ("AppController") are
>
below. Started fresh with a new "Cocoa Application". Now I get the
>
more meaningful but equally frustrating error:
>
>
2004-05-22 02:46:53.706 Test[670] *** -[NSCFNumber
>
objectAtIndex:]: selector not recognized
>
>
My NSArray has turned into an NSCFNumber while I was waiting around.
>
This looks like a pointer issue. What don't I know about cocoa?
theArray = [theString componentsSeparatedByString:@" "] ;
"componentsSeparatedByString:" returns an autoreleased string. If you
want to keep it from being deallocated you need to retain it.
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.