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

Re: NSApp sendAction


  • Subject: Re: NSApp sendAction
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 23 Nov 2005 12:31:57 -0700


On Nov 23, 2005, at 10:08 AM, Brian O'Brien wrote:

[reply performSelector:@selector(seriesReceivedInArray:fromPort:) withObject:dataSets withObject:portNumber];

Where reply is the instance of the object whose selector I want to call?

I think you've got it. :) Of course, both dataSets and portNumber must be Objective-C objects. If you want to pass in primitive arguments (int, BOOL, etc.) then you need to use NSInvocation instead as others have mentioned.


Of course this object must inherit from NSObject...

Hopefully you haven't written (or are using) any objects that don't inherit from NSObject...


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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
References: 
 >NSApp sendAction (From: "Brian O'Brien" <email@hidden>)
 >Re: NSApp sendAction (From: Nick Zitzmann <email@hidden>)
 >Re: NSApp sendAction (From: j o a r <email@hidden>)
 >Re: NSApp sendAction (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: graphicsContextWithBitmapImageRep: with flipped view
  • Next by Date: Re: CIImage slower than NSImage?
  • Previous by thread: Re: NSApp sendAction
  • Next by thread: Re: NSApp sendAction
  • Index(es):
    • Date
    • Thread