• 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: "-forwardInvocation:" like NSInvocation creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "-forwardInvocation:" like NSInvocation creation


  • Subject: Re: "-forwardInvocation:" like NSInvocation creation
  • From: Philip Mötteli <email@hidden>
  • Date: Mon, 29 Mar 2010 20:15:44 +0200

Hi,


Am 29.03.2010 um 18:52 schrieb A.M.:
>
> On Mar 29, 2010, at 11:07 AM, Philip Mötteli wrote:
>
>> I need to temporary save the invocation of a method. For that, I just need to put the stack frame into an NSInvocation. Unfortunately, Apple has removed the -setStackFrame: from NSInvocation. Though they still use something like it, because they need it for -forwardInvocation:.
>> Has anybody implemented a method like [NSInvocation initWithArgframe: (arglist_t)frame selector: (SEL)aSelector]?
>
> Hm- you haven't made it clear why you need the stack frame. The stack frame is still there (or constructed on-the-fly), but it is an opaque, hidden structure. As long as you call retainArguments, NSInvocation can be saved for later use.

I see, I really wasn't enough clear. Lets say, I have a method

- someMethodWithArgument:(struct *)anArgument andSomeOtherArgument:(id)anotherArgument
{
	// Here I want to create an NSInvocation, capturing the call of this method. Something like:
	NSInvocation *anInvocation = [NSInvocation initWithArgframe: (arglist_t)frame selector: _cmd];
}


Thanks

_______________________________________________

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

  • Follow-Ups:
    • Re: "-forwardInvocation:" like NSInvocation creation
      • From: Michael Ash <email@hidden>
    • Re: "-forwardInvocation:" like NSInvocation creation
      • From: Jerry Krinock <email@hidden>
    • Re: "-forwardInvocation:" like NSInvocation creation
      • From: Kyle Sluder <email@hidden>
References: 
 >"-forwardInvocation:" like NSInvocation creation (From: Philip Mötteli <email@hidden>)

  • Prev by Date: Removing custom properties from ABRecords
  • Next by Date: Re: Custom NSTextView for text annotations
  • Previous by thread: "-forwardInvocation:" like NSInvocation creation
  • Next by thread: Re: "-forwardInvocation:" like NSInvocation creation
  • Index(es):
    • Date
    • Thread