Re: Cocoa Classes from C++?
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