On 3-Jun-08, at 12:13 PM, Mike Abdullah wrote:
Well this cast is fairly pointless as it makes no change to the data at all. Returning an NSMutableData object from an NSData method is perfectly legitimate as it is a subclass. So you might as well just do:return myData;Really, it's up to you. You can just use the simple option of returning a mutable object, or you can do either of these:return [NSData dataWithData:myData]; return [[myData copy] autorelease];
My concern is that the returned object be truly immutable. For now, I'm the only one using the class, but that may change in the future.
---- Karl Moskowski <[EMAIL PROTECTED]> Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [EMAIL PROTECTED]
