• 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: NSInvocation problem - "NSView not correctly initialized"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSInvocation problem - "NSView not correctly initialized"


  • Subject: Re: NSInvocation problem - "NSView not correctly initialized"
  • From: Robert Nikander <email@hidden>
  • Date: Mon, 5 Nov 2007 13:17:07 -0500

On Nov 5, 2007, at 12:37 PM, Shawn Erickson wrote:
On 11/5/07, Robert Nikander <email@hidden> wrote:

So what is different about calling through the NSInvocation that
causes the error message?

As a test try sending a retain message to alloced object after each of the following...

   b = [NSButton alloc];
   b = objc_msgSend(button_class, alloc_sel);


Doh! Thanks, I think that answers it. It makes sense that NSInvocation would retain object return values, and is thus unusable for calling "alloc". I'm used to garbage collection...

Rob


_______________________________________________

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: 
 >NSInvocation problem - "NSView not correctly initialized" (From: Robert Nikander <email@hidden>)
 >Re: NSInvocation problem - "NSView not correctly initialized" (From: "Clark Cox" <email@hidden>)
 >Re: NSInvocation problem - "NSView not correctly initialized" (From: Robert Nikander <email@hidden>)
 >Re: NSInvocation problem - "NSView not correctly initialized" (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Using .Mac iDisk for subversion (svn) repository?
  • Next by Date: Getting the right objects in an Array
  • Previous by thread: Re: NSInvocation problem - "NSView not correctly initialized"
  • Next by thread: NSInvocation problem - "NSView not correctly initialized"
  • Index(es):
    • Date
    • Thread