• 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: initWithObject Confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >initWithObject Confusion (From: John Nairn <email@hidden>)
 >Re: initWithObject Confusion (From: Kyle Sluder <email@hidden>)
 >Re: initWithObject Confusion (From: John Nairn <email@hidden>)

  • Prev by Date: Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?
  • Next by Date: Re: ATSApplicationFontsPath "just doesn't work" Was: Can I add my own chars...?
  • Previous by thread: Re: initWithObject Confusion
  • Next by thread: NSPredicateEditor, _NSRuleEditorViewUnboundRowHolder and boundArray error moving to 10.6
  • Index(es):
    • Date
    • Thread