• 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
Re: Is this a bug of the Cocoa or the Objective-C?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Is this a bug of the Cocoa or the Objective-C? (From: JongAm Park <email@hidden>)
 >Re: Is this a bug of the Cocoa or the Objective-C? (From: Jérome Laurens <email@hidden>)

  • Prev by Date: Tooltip support broken for NSTableView on 10.4?
  • Next by Date: local mail framework?
  • Previous by thread: Re: Is this a bug of the Cocoa or the Objective-C?
  • Next by thread: Re: Is this a bug of the Cocoa or the Objective-C?
  • Index(es):
    • Date
    • Thread