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

newbie memory question


  • Subject: newbie memory question
  • From: pmcurry <email@hidden>
  • Date: Sun, 30 Nov 2003 12:57:20 -0800

NSData* data = [[notice userInfo] objectForKey: NSFileHandleNotificationDataItem];
NSString* string = [[NSString alloc] initWithData: data encoding: [NSString defaultCStringEncoding]];
NSArray* components = [string componentsSeparatedByString:@"\n"];

Can I assume these three lines are using 'convenience type' calls and I'm not responsible for releasing any of the objects created in the process? I'm still memory gun-shy.

Thanks.
-Phil
_______________________________________________
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.

  • Follow-Ups:
    • Re: newbie memory question
      • From: Chris Hanson <email@hidden>
    • Re: newbie memory question
      • From: Andres Santiago Perez-Bergquist <email@hidden>
  • Prev by Date: Re: rounding a float
  • Next by Date: Re: newbie memory question
  • Previous by thread: Re: problem with custom NSFormatter and NSTextField
  • Next by thread: Re: newbie memory question
  • Index(es):
    • Date
    • Thread