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

NSApp sendAction


  • Subject: NSApp sendAction
  • From: "Brian O'Brien" <email@hidden>
  • Date: Wed, 23 Nov 2005 09:29:52 -0700

Hi. I'm trying to use NSApp sendAction.
However I don't seem to be able to pass parameters to the selector.
For example...
[NSApp sendAction:@selector(seriesReceivedInArray:dataSets fromPort:portnumber) to:reply from:self];
won't compile I get the error message
err: expected `:' before 'fromPort'


However
[NSApp sendAction:@selector(seriesReceivedInArray:) to:reply from:self];


complies without error.
Maybe I have a syntax error and am not calling it properly?

Previously I was doing:
[reply seriesReceivedInArray:dataSets fromPort:portNumber];
but that doesn't work with pyObjC calling a python method.. but that I guess is beyond the scope
of this mailing list....


So does anyone know how I can pass parameters to selector using NSApp sendAction?
How about performSelctorOnMainThread? How might I use that? Or shouldn't I?



_______________________________________________ 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: NSApp sendAction
      • From: Shawn Erickson <email@hidden>
    • Re: NSApp sendAction
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Using NSInvocation with a class method
  • Next by Date: Re: Xcode 2.1 debugging
  • Previous by thread: Re: Using NSInvocation with a class method
  • Next by thread: Re: NSApp sendAction
  • Index(es):
    • Date
    • Thread