Le 29 mai 09 à 11:31, Alexander Spohr a écrit :
Am 29.05.2009 um 02:55 schrieb John Ku:
And yeah, NSMutableString will be initialized else where and
released later.
Why use a mutable string at all? Just retain the new string and dump
the old one.
Use
@property (retain) NSString *title;
@synthesize title;
and be done with it.
Copying it is even better as it will prevent strange side effect you
can have if you affect a mutable string to the property (and it is a
fast as retaining if you use immutable strings).
@property (copy) NSString *title;
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com