Re: initWithObject Confusion
Re: initWithObject Confusion
- Subject: Re: initWithObject Confusion
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 8 Apr 2010 17:13:01 -0600
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 @24@0:8@16
imp 0x101820 -[NSArray initWithObject:]
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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