• 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: NSString out of scope
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSString out of scope
      • From: Pierre Berloquin <email@hidden>
References: 
 >NSString out of scope (From: Pierre Berloquin <email@hidden>)

  • Prev by Date: Re: copyWithZone - if anyone could explain this to me ?
  • Next by Date: Re: Hightlight on mouseover a NSTextFieldCell inside a TableView
  • Previous by thread: NSString out of scope
  • Next by thread: Re: NSString out of scope
  • Index(es):
    • Date
    • Thread