Re: Using Python from Cocoa App via PyObjc - numbers dont match...

2006-11-08 Thread sapsi
Hi, Well not a complaint as such but a question. Thank you for the response however and the link. I have seen it before but never got around to reading it... Further to this, if i was writing a python module and c function and suppose the python module and the c function called each other back a

Re: Using Python from Cocoa App via PyObjc - numbers dont match...

2006-11-08 Thread Michael Ash
In comp.lang.objective-c sapsi <[EMAIL PROTECTED]> wrote: > The first output in the console is 40.4 and the second > -40.4152587891. > > If i change the NSLog(s) to "%f",[n floatValue] (and the second > likewise) the first is 40.42 and the second is -40.42. I assume you are complaini

Re: Using Python from Cocoa App via PyObjc - numbers dont match...

2006-11-08 Thread Gabriel Genellina
At Wednesday 8/11/2006 22:22, sapsi wrote: I managed to create a python class and instantiate that from my Objective C Cocoa App (its not a python app). [...] The first output in the console is 40.4 and the second -40.4152587891. If i change the NSLog(s) to "%f",[n floatValue] (and the sec

Using Python from Cocoa App via PyObjc - numbers dont match...

2006-11-08 Thread sapsi
Hi, I managed to create a python class and instantiate that from my Objective C Cocoa App (its not a python app). Essentially, i made two classes in IB and then another class(ogle) with outlets for these two. Now here is the implementation for ogle.m -(void)awakeFromNib { NSNumber *n=[NSNumber