[Pythonmac-SIG] Re: Cocoa apps in Python?
David Eppstein
eppstein@ics.uci.edu
Wed, 19 Feb 2003 15:12:09 -0800
In article <6249B28D-4457-11D7-9123-000A95686CD8@redivi.com>,
Bob Ippolito <bob@redivi.com> wrote:
> While we're on the newbie subject here, how exactly are we supposed to
> make selectors? I've had no problems just passing 'foo:bar:' - but is
> there a objc.something('foo:bar'),
> objc.something(SomeWrapper.foo_bar_), or
> objc.something(someInstance.foo_bar_) preferred method that I should be
> aware of?
I think you can pass either Python callables (object.method_) or strings
("method:").
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein@ics.uci.edu http://www.ics.uci.edu/~eppstein/