• 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: I don't understand why this is leaking...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I don't understand why this is leaking...


  • Subject: Re: I don't understand why this is leaking...
  • From: Jason Coco <email@hidden>
  • Date: Tue, 12 Aug 2008 10:50:01 -0400


On Aug 12, 2008, at 07:49 , Phil wrote:

On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann
<email@hidden> wrote:
Yes, I have.

1. Simple Test:
In IB create new window, add NSTextField with content "$null" (without the
quotes) save in 10.2 or later format. Close. Open again. Look at your
string.


[...]
Maybe this will work on Leopard. On Tiger it does not. (No crash, nor error
message either).



I tested this in Leopard, 2.x NIBs have this problem, but 3.X NIBs and XIBs do not. It looks like it was a bug that's fixed in Leopard, but preserved in some cases for backwards compatability.

Although, I wouldn't consider this bug much of a reason for not using
keyed archiving. Even though NS(Un)Archiver aren't deprecated, they
have been "replaced".

Just for fun I tested the example program built from the command line in Leopard (10.5.4 9E17) running
XCode 3.1 (latest build) and the current Foundation library... the problem as demonstrated by the example
code still exists... the string @"$null" gets decoded as a nil pointer instead of a string with the word "$null".


Jason

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Re: I don't understand why this is leaking... (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: I don't understand why this is leaking... (From: Negm-Awad Amin <email@hidden>)
 >Re: I don't understand why this is leaking... (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: I don't understand why this is leaking... (From: Phil <email@hidden>)

  • Prev by Date: Re: Tidying NSURLs Containing XML
  • Next by Date: Re: Thread deadlock?
  • Previous by thread: Re: I don't understand why this is leaking...
  • Next by thread: Re: I don't understand why this is leaking...
  • Index(es):
    • Date
    • Thread