• 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: Autorelease question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autorelease question


  • Subject: Re: Autorelease question
  • From: "Hamish Allan" <email@hidden>
  • Date: Fri, 4 Apr 2008 01:19:10 +0100

On Fri, Apr 4, 2008 at 1:03 AM, Dmitry Markman <email@hidden> wrote:

>  but from other hand in the complex Carbon application, where I never
> explicitly created NSAutoreleasePool object
>  I can call
>             NSString *textString = [NSString stringWithCString:"Hello From
> Cocoa" encoding:NSMacOSRomanStringEncoding];
>  without any warnings about _NSAutoreleaseNoPool

You are quite sure this code is being executed?

>  so I suppose default NSAutoreleasePool was created for me

I don't think it ever gets created for you; XCode can generate code
that creates it; if so, you should be able to find "NSAutoreleasePool"
with a project-wide search.

Hamish
_______________________________________________

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: Autorelease question
      • From: Dmitry Markman <email@hidden>
References: 
 >Autorelease question (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: Autorelease question
  • Next by Date: Re: Modify Input in NSTableView
  • Previous by thread: Re: Autorelease question
  • Next by thread: Re: Autorelease question
  • Index(es):
    • Date
    • Thread