NSTextField "setStringValue" method - deallocates?
NSTextField "setStringValue" method - deallocates?
- Subject: NSTextField "setStringValue" method - deallocates?
- From: Christopher J Kemsley <email@hidden>
- Date: Sat, 14 Jun 2008 20:35:23 -0700
- Resent-date: Sat, 14 Jun 2008 20:36:14 -0700
- Resent-from: Christopher J Kemsley <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
I'm new to Obj-C, and I'm trying to make sure I start off writing good
code so I don't have to come back and learn how to avoid dirty code
and/or memory leaks.
That being said, if I do the following:
NSString *someString = [ NSString stringWithString:@"Hello World!" ] ;
[ someNSTextField setStringValue:someString ] ;
Does the NSTextField take care of de-allocating the memory from the
old value by itself?
-Christopher Kemsley
J-Net Webcasting
http://www.jnetcast.net
_______________________________________________
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