Re: NSString out of scope
Re: NSString out of scope
- Subject: Re: NSString out of scope
- From: Graham Cox <email@hidden>
- Date: Tue, 1 Dec 2009 21:32:31 +1100
On 01/12/2009, at 7:39 PM, Pierre Berloquin wrote:
> How come an NSString or NSMutableString I declare in the view controler .h
> interface
>
> NSMutableString *language;
>
>
> is "out of scope" even before I do anything with it in the .m implementation
>
>
> language = [[NSMutableString alloc] init];
Good game, but can you supply some surrounding context?
Is 'language' an ivar of a class or just sitting there as a global? Where is the alloc/init being called from? What is giving the error - the compiler? Debugger?
Or have I already used up my 20 questions?
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden