• 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: ObjectiveC AND C++ Templates.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjectiveC AND C++ Templates.


  • Subject: Re: ObjectiveC AND C++ Templates.
  • From: Oscar Morales Vivó <email@hidden>
  • Date: Thu, 29 May 2003 14:41:30 +0200

You can just use the STL by appending your code files with .mm instead of .m, so you turn on Objective-C++

There are a number of limitations when using Objective-C++ (which derive from the fact that the Objective-C and C++ classes are disjoint and know nothing of each other). But in theory there's nothing preventing you from declaring a std::list<NSBezierPath*> for example. Just don't use non-trivial objects as instance variables of Objective-C classes (been bitten by that onem myself), and don't mix C++ exceptions with Objective-C exceptions.

Anyway, better not mix them too much as you might find weird problems.

Hope that helps.

On Thursday, May 29, 2003, at 14:11 Europe/Madrid, Poornima Ranganath wrote:

Hi All:
Is there a way to use "C++ templates" like <list> ,<vector>, <map> etc. in ObjectiveC - Cocoa?

Are there equivalent
kindly tell me how to do so.Pls point me to links,articles,or sample codes.
Thanks for reading this mail

rgds,
Poornima


Catch all the cricket action. Download Yahoo! Score tracker
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



/*
Oscar Morales Vivs

Eternal Computer Science Student. Master of C++ Templates. Cocoa Nut. Computer Graphics Illuminati. UI Guru in Training. Dabbler in all things CS and most which are not.

Web stuff: http://homepage.mac.com/oscarmv/index.html
*/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >ObjectiveC AND C++ Templates. (From: Poornima Ranganath <email@hidden>)

  • Prev by Date: Dismiss Window Issue- despo for a solution
  • Next by Date: Re: Dismiss Window Issue- despo for a solution
  • Previous by thread: ObjectiveC AND C++ Templates.
  • Next by thread: Re: ObjectiveC AND C++ Templates.
  • Index(es):
    • Date
    • Thread