• 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: objective-c newbie type question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objective-c newbie type question


  • Subject: Re: objective-c newbie type question
  • From: Aaron Boothello <email@hidden>
  • Date: Sun, 17 Apr 2005 14:42:48 +0800

Thanks guys for your help,
it sorted out a lot of things. I was trying to translate C/C++ into objective-C, and that just saved me a lot of work.
Alright...Keith, what you mentioned is pretty interesting. ive never tried mixing languages the way you mentioned. Here's my situation:
-I have defined NSOpenGLViews and a couple of classes(called joints and skeleton) using Cocoa to handle input from the mouse(Objective-C)(.h and .m files).
-I have some opensource solvers for 3D transformations written in C/C++ (called solver and matrix)(thats im trying to use with my app.(.h and .cpp)
-i can ensure that all the parameters and variables matchup, since my app already keeps track of the necessaary values.

As mentioned above, the c++ class solver, has a pointer to a type skeleton(cause it accessed some members of skeleton using the pointer), that ive defined in Objective-C. is there a way to make the differene in language transparent ?

I get a heck of a lot of errors when i try to do the above, so was wondering if it was even possible.

Cheers,
Aaron.

On Saturday, April 16, 2005, at 10:39PM, Keith Ray <email@hidden> wrote:

>Don't forget that you can combine C++ and Objective-C if your file
>suffixes are .mm instead of .m
>
>On 4/16/05, Aaron Boothello <email@hidden> wrote:
>> typedef double matrix[16];
>
>Consider using OCUnit, UnitKit or another unit-test framework to
>test-drive your code. Google for test-driven-development, TDD, OCUnit,
>UnitKit.
>----
>
>C. Keith Ray
><http://homepage.mac.com/keithray/blog/index.html>
><http://homepage.mac.com/keithray/xpminifaq.html>
><http://homepage.mac.com/keithray/resume2.html>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: objective-c newbie type question(solution found :))
      • From: Aaron Boothello <email@hidden>
References: 
 >objective-c newbie type question (From: Aaron Boothello <email@hidden>)
 >Re: objective-c newbie type question (From: Keith Ray <email@hidden>)

  • Prev by Date: Re: Custom view, selection consistency with NSTableView
  • Next by Date: Re: objective-c newbie type question(solution found :))
  • Previous by thread: Re: objective-c newbie type question
  • Next by thread: Re: objective-c newbie type question(solution found :))
  • Index(es):
    • Date
    • Thread