Re: Is this a bug of the Cocoa or the Objective-C?
Re: Is this a bug of the Cocoa or the Objective-C?
- Subject: Re: Is this a bug of the Cocoa or the Objective-C?
- From: Jim Correia <email@hidden>
- Date: Fri, 26 Jan 2007 09:05:30 -0500
On Jan 26, 2007, at 8:02 AM, Jérome Laurens wrote:
you'd better test for theRange.length>0
That way, if keyString is nil, theRange.length is 0
You should not rely on getting back a zeroed structure from a message
to nil. A structure may or may not be filled in with zeros depending
upon the architecture you are running on and the size of the structure.
<http://developer.apple.com/documentation/MacOSX/Conceptual/
universal_binary/universal_binary_tips/chapter_5_section_22.html>
Jim_______________________________________________
Cocoa-dev mailing list (email@hidden)
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