• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Syntax errors, undeclared variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Syntax errors, undeclared variables
      • From: Andrew Farmer <email@hidden>
References: 
 >Syntax errors, undeclared variables (From: Kevin Walzer <email@hidden>)
 >Re: Syntax errors, undeclared variables (From: Peter Duniho <email@hidden>)

  • Prev by Date: re: name == "$FETCH_SOURCE.name" -- Doesn't find dupes?
  • Next by Date: Running out of memory when adding CGImageRef-to-NSImage frames to QTMovie in NSOperation subclass
  • Previous by thread: Re: Syntax errors, undeclared variables
  • Next by thread: Re: Syntax errors, undeclared variables
  • Index(es):
    • Date
    • Thread