• 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
NSInvocation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSInvocation problem


  • Subject: NSInvocation problem
  • From: email@hidden
  • Date: Wed, 24 Nov 2004 16:08:25 -0500

I have a small problem with NSInvocation, im setting an invocation up like this:

// setWidth: is a method defined by self.

NSMethodSignature* sig = [LayoutControl instanceMethodSignatureForSelector: @selector(setWidth:)];
NSInvocation* incovation = [NSInvocation invocationWithMethodSignature:sig];
[invocation setSelector: @selector(setWidth:)];
[invocation setTarget:self];


whenever i try and invoke it, i get this error message:

2004-11-24 16:04:04.970 Cocode[4943] *** -[NSInvocation copyWithZone:]: selector not recognized

Whats going n here and how can i fix it? Can my invoced method have non "NS" types?

thanks
Alex

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSInvocation problem
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: help on 'help books'
  • Next by Date: Updating my application via Internet
  • Previous by thread: Re: Further to Re: Accessing a file "comment" --- SetFile
  • Next by thread: Re: NSInvocation problem
  • Index(es):
    • Date
    • Thread