• 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: Cocoa Classes from C++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Classes from C++?


  • Subject: Re: Cocoa Classes from C++?
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 27 May 2008 17:18:06 -0600


On May 27, 2008, at 5:12 PM, J. Todd Slack wrote:

1. I wish to create an NSStatusItem. I have ObjC Code to do so, but how can I do this in C++?

You can't.

2. Can anyone point me to a reference of using Apple's Frameworks with C++ rather than ObjC?

There aren't any. ObjC is dynamically typed while C++ is statically typed; that alone makes C++ not a good fit for AppKit or Foundation programming, since the frameworks rely on dynamic types.


3. How does one use a .C or .CPP file and call functionality in a .M?


Give it the extension .mm.

Nick Zitzmann
<http://www.chronosnet.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


References: 
 >Cocoa Classes from C++? (From: "J. Todd Slack" <email@hidden>)

  • Prev by Date: Re: Which framework for Wifi?
  • Next by Date: Re: Cocoa Classes from C++?
  • Previous by thread: Cocoa Classes from C++?
  • Next by thread: Re: Cocoa Classes from C++?
  • Index(es):
    • Date
    • Thread