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

On Tue, Aug 12, 2008 at 10:25 PM, Gerriet M. Denkmann
<[EMAIL PROTECTED]> 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 (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 [EMAIL PROTECTED]

Reply via email to