• 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: Daniel Jalkut <email@hidden>
  • Date: Wed, 23 Nov 2005 12:11:20 -0500

That looks about right. The only thing to watch out for is that the arguments should be "objects," so if your portNumber is not an NSNumber, you may want to change the signature of the function so that it expects an NSNumber instead of a straight int.

To be honest I'm not really sure how dire (if at all) the consequences of sending a non-object are, but it seems like a bad idea.

Daniel

On Nov 23, 2005, at 12:08 PM, Brian O'Brien wrote:

So how about ...
- (id)performSelector:(SEL)aSelector withObject:(id)anObject withObject:(id)anotherObject
?
Pardon me if I need some help here....


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

Where reply is the instance of the object whose selector I want to call?
Of course this object must inherit from NSObject...

_______________________________________________ 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: Andy Lee <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: Re: NSApp sendAction
  • Next by Date: Reverse value transformation with different class?
  • Previous by thread: Re: NSApp sendAction
  • Next by thread: Re: NSApp sendAction
  • Index(es):
    • Date
    • Thread