• 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: [[object autorelease] release]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[object autorelease] release]


  • Subject: Re: [[object autorelease] release]
  • From: Rosyna <email@hidden>
  • Date: Tue, 2 Oct 2001 05:20:27 -0700

I think the original thing here was

NSString* myString=[NSString stringWithString:@"Hi Mom!"]; // @"Hi Mom!" puts weird data into the variable.
[myString use];
[myString release];

In this case, there is no problem with that. And in the other case, it'd check to see if that second object was freed as well. So I am probably not understanding your objection to this.

Ack, at 10/2/01, Ondra Cada said:

>>>>>> Rosyna (R) wrote at Tue, 2 Oct 2001 05:07:44 -0700:
R> Its a huge speed hit to see if the object in the autorelease pool has
R> been released already?

That would be (almost) no speed hit at all.

Alas, what it *completely* impossible is checking whether another object did
not take the same (freed) address meantime.

--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insane People


References: 
 >[[object autorelease] release] (From: Markus Hitter <email@hidden>)
 >Re: [[object autorelease] release] (From: Rosyna <email@hidden>)

  • Prev by Date: Re: NSString - Initialize with number....
  • Next by Date: Re: Docklet(ing) API & 10.1: Where ????
  • Previous by thread: Re: [[object autorelease] release]
  • Next by thread: Re: [[object autorelease] release]
  • Index(es):
    • Date
    • Thread