Re: [Pyobjc-dev] Calling Python from Obj-C
Brought to you by:
ronaldoussoren
From: Brian O'B. <bo...@uc...> - 2005-11-24 20:34:05
|
On 24-Nov-05, at 1:14 PM, David wrote: > The documentation for PyObjC states how "All Python objects can be > accessed from Objective-C through proxy objects." Could someone > please post an example of how to do this? There are many examples > calling objective-c from python but I can't find a single one going > the other way. > > After pulling my hair out and getting a few more grey hair, this is what worked for me... [reply performSelector:@selector(seriesReceivedInArray:from:) withObject:dataSets withObject:self]; Where reply is an instance of a class my Python script (self in python). It should be noted that you can not pass integers or other atomic types the only thing that can be passed are objects. Also this does not work: [reply seriesReceivedInArray:dataSets from:self]; Which is almost understandable.... > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |