Re: Syntax errors, undeclared variables

2009-02-09 Thread Andrew Farmer
On 07 Feb 09, at 16:06, Kevin Walzer wrote: I am making progress on this by refactoring the code to include the Cocoa methods in a Cocoa class and the Tcl C-API code in a separate file, called in normal C procedural style. Keep in mind that there's no restriction against calling ObjC methods

Re: Syntax errors, undeclared variables

2009-02-07 Thread Kevin Walzer
Peter Duniho wrote: On Feb 6, 2009, at 6:51 PM, Kevin Walzer wrote: [...] I'm not sure what is causing these errors. Line 11 is set up like this: -(int)switchIcon (ClientData cd, Tcl_ip *ip, int objc, Tcl_Obj *objv[]); The error is because your method prototype syntax is completely wrong.

Re: Syntax errors, undeclared variables

2009-02-06 Thread Peter Duniho
On Feb 6, 2009, at 6:51 PM, Kevin Walzer wrote: [...] I'm not sure what is causing these errors. Line 11 is set up like this: -(int)switchIcon (ClientData cd, Tcl_ip *ip, int objc, Tcl_Obj *objv[]); The error is because your method prototype syntax is completely wrong. You should probabl

Syntax errors, undeclared variables

2009-02-06 Thread Kevin Walzer
I'm trying to build a small extension to the Tcl scripting language that hooks into Cocoa/Objective-C. The idea is to change an application's dock icon with a call to [NS App setApplicationIconImage]. However, when I try to compile my code, I get various errors, such as: cocoadock.m:11: error: