• 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: XCode not releasing nsstring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode not releasing nsstring


  • Subject: Re: XCode not releasing nsstring
  • From: Andrei Tapolow <email@hidden>
  • Date: Tue, 11 Nov 2003 19:42:05 -0800

Justin, you could try:

if (releaseTest != nil) {
if ([[self class] isMemberOfClass: [NSString class]]) {
NSLog(@"C: releaseTest NOT nil. (%x) [%i]", self , [self retainCount]);
} else {
NSLog(@"C: releaseTest NOT nil. (%x)", self);
}
} else {
NSLog(@"C: releaseTest nil.");
}

But once you've put in for release you may lose the object if it gets released when you don't expect it to.
You may want to frame that in exception handling


On Nov 11, 2003, at 5:20 PM, Justin Lundy wrote:

A: releaseTest nil.
B: releaseTest NOT nil.
C: releaseTest NOT nil.

Call me crazy, but shouldn't the last one say "C: releaseTest nil."?

Bug?

Help?



-A
_______________________________________________
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.

References: 
 >XCode not releasing nsstring (From: Justin Lundy <email@hidden>)

  • Prev by Date: Preventing tableView sorting
  • Next by Date: Re: Disabling sorting in NSTableView
  • Previous by thread: Re: XCode not releasing nsstring
  • Next by thread: Re: XCode not releasing nsstring
  • Index(es):
    • Date
    • Thread