On Apr 8, 2010, at 5:03 PM, John Nairn wrote:

> In Snow Leopard, however, there was no message and it worked fine as if Snow 
> Leopard read my mind and realized I wanted to create an array with a single 
> object. But, I am nervous about relying on the OS to read my mind (or even 
> have an idea of how it did that)?

It happened because you used a method that is present but private in Snow 
Leopard and apparently nonexistent in earlier versions of the frameworks:

% otool -ov /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
[...]
           isa 0x19cd00 _OBJC_METACLASS_$_NSArray
    superclass 0x19d4a8 _OBJC_CLASS_$_NSObject
[...]
                      name 0x13597e initWithObject:
                     types 0x139f58 @2...@0:8...@16
                       imp 0x101820 -[NSArray initWithObject:]

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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 arch...@mail-archive.com

Reply via email to