Re: Syntax errors, undeclared variables
Re: Syntax errors, undeclared variables
- Subject: Re: Syntax errors, undeclared variables
- From: Kevin Walzer <email@hidden>
- Date: Sat, 07 Feb 2009 19:06:12 -0500
- Organization: WordTech Communications LLC
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.
You should probably read some of the basic guides before you try writing
Objective-C programs. Here's a good place to start:
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/index.html
Hope that helps.
Pete
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.
Thanks for the advice.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden