Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Any free C++ Application frameworks for MacOS X?

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  AppleScript to launch Classic if needed, then run..  
Author Message
user391

External


Since: Dec 09, 2004
Posts: 4



(Msg. 1) Posted: Wed Dec 08, 2004 11:40 pm
Post subject: Any free C++ Application frameworks for MacOS X?
Archived from groups: comp>sys>mac>programmer>misc (more info?)

I've been using PowerPlant to program for MacOS 9.
Since I've recently upgraded to MacOS X, and don't currently have the
funds to purchase a CW upgrade, I wonder wether there are any free
Application frameworks written in C++, that includes a User Interface
editor.
(Also - Does Objective C support template parameters and template
specialisations? If so, I might try using Cocoa instead)
Tommy Nordgren

 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 1083



(Msg. 2) Posted: Wed Dec 08, 2004 11:40 pm
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <2004120903175816807%tommynordgren@nospamchellose>,
Tommy Nordgren <tommy.nordgren.DeleteThis@nospam_chello.se> wrote:

 > I've been using PowerPlant to program for MacOS 9.
 > Since I've recently upgraded to MacOS X, and don't currently have the
 > funds to purchase a CW upgrade, I wonder wether there are any free
 > Application frameworks written in C++, that includes a User Interface
 > editor.

You've already got one. Both Metrowerks and
/Developer/Applications/XCode support Interface Builder, a free User
Interface editor, and IB, CW, and XCode support both Cocoa and Carbon

 > (Also - Does Objective C support template parameters and template
 > specialisations? If so, I might try using Cocoa instead)

Give our files a .mm suffix and you can use both Cocoa and C++.

The Nitrogen class library is a free, public domain, open source C++
wrapper for Carbon. <http://sourceforge.net/projects/nitric/>. It is
a clean C++ wrapper for Carbon both OS X and OS 9, that will simplify
your Carbon code. It also handles some of the issues of framework
includes versus Universal headers. The Nitrogen Manifesto
<http://nitric.sourceforge.net/> explains how and why.

The CVS page on the web site explains how to download all the Nitrogen
source code.

--
David Phillip Oster<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
Daniel T.

External


Since: Jul 10, 2003
Posts: 55



(Msg. 3) Posted: Sat Dec 11, 2004 12:40 am
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tommy Nordgren <tommy.nordgren.DeleteThis@nospam_chello.se> wrote:

 > Also - Does Objective C support template parameters and template
 > specialisations? If so, I might try using Cocoa instead

Technically, no. Objective C doesn't need templates at all because it is
a dynamically typed language.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 1083



(Msg. 4) Posted: Sat Dec 11, 2004 1:40 am
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <postmaster-E64E73.23120110122004 DeleteThis @news1.east.earthlink.net>,
"Daniel T." <postmaster DeleteThis @earthlink.net> wrote:

 > Tommy Nordgren <tommy.nordgren DeleteThis @nospam_chello.se> wrote:
 >
  > > Also - Does Objective C support template parameters and template
  > > specialisations? If so, I might try using Cocoa instead
 >
 > Technically, no. Objective C doesn't need templates at all because it is
 > a dynamically typed language.

While you can do many things in Objective C, there are also many other
things that it can't do.

Templates and dynamic typing have capabilities that don't overlap. For
example, you can use templates to do compile-time asserts. That means ou
can use the compiler to catch many errors at compile time that
Objective-C could only catch if you happen to execute the correct test
code.

With the superior type-checking of C++, you can completely eliminate the
need to manually write [thing retain], [thing release] or [thing
autorelease] (See boost::shared_ptr<> for an implementation, or the
Nitrogen project <http://nitric.sourceforge.net>.)

Take a close look at boost.org, read Alexandrescu's book, "Modern C++
Design", if you think that Objective_C doesn't need templates just
because it has dynamic typing.

--
David Phillip Oster<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
Michael Ash1

External


Since: Jun 01, 2004
Posts: 820



(Msg. 5) Posted: Sat Dec 11, 2004 4:38 am
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David Phillip Oster <oster.RemoveThis@ieee.org> wrote:
 > In article <postmaster-E64E73.23120110122004.RemoveThis@news1.east.earthlink.net>,
 > "Daniel T." <postmaster.RemoveThis@earthlink.net> wrote:
 >
  >> Tommy Nordgren <tommy.nordgren.RemoveThis@nospam_chello.se> wrote:
  >>
   >> > Also - Does Objective C support template parameters and template
   >> > specialisations? If so, I might try using Cocoa instead
  >>
  >> Technically, no. Objective C doesn't need templates at all because it is
  >> a dynamically typed language.
 >
 > While you can do many things in Objective C, there are also many other
 > things that it can't do.

Daneil T. is not entirely correct here. Objective-C is only partially
dynamically typed. Its object system is dynamically typed, but all of its
primitives lay outside of the object system and don't benefit. This means
that you can't build things like collections classes that can hold
arbitrary primitive types the way you can in a templated language, or in a
fully dynamically-typed language.

 > Templates and dynamic typing have capabilities that don't overlap. For
 > example, you can use templates to do compile-time asserts. That means ou
 > can use the compiler to catch many errors at compile time that
 > Objective-C could only catch if you happen to execute the correct test
 > code.
 >
 > With the superior type-checking of C++, you can completely eliminate the
 > need to manually write [thing retain], [thing release] or [thing
 > autorelease] (See boost::shared_ptr<> for an implementation, or the
 > Nitrogen project <http://nitric.sourceforge.net>.)
 >
 > Take a close look at boost.org, read Alexandrescu's book, "Modern C++
 > Design", if you think that Objective_C doesn't need templates just
 > because it has dynamic typing.

I don't want to start a language war, but I think I should point out that
not everybody agrees that templates offer anything useful, or that C++'s
type system is superior. I am not going to state a preference either way,
but you're stating things as fact that are much more in the realm of
opinion.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 1083



(Msg. 6) Posted: Sat Dec 11, 2004 7:40 pm
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1102757919.841724 RemoveThis @nfs-db1.segnet.com>,
Michael Ash <mike RemoveThis @mikeash.com> wrote:

 > I don't want to start a language war, but I think I should point out that
 > not everybody agrees that templates offer anything useful, or that C++'s
 > type system is superior. I am not going to state a preference either way,
 > but you're stating things as fact that are much more in the realm of
 > opinion.

I don't want to start a language war either, and I certainly did not
mean to imply that in C++ you can easily do everything that you can do
in Objective-C. I am in violent agreement with you: the two are
different, and neither is a superset of the other.

--
David Phillip Oster<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
Doc OLeary2

External


Since: Sep 19, 2004
Posts: 51



(Msg. 7) Posted: Sun Dec 12, 2004 4:26 am
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1102757919.841724.DeleteThis@nfs-db1.segnet.com>,
Michael Ash <mike.DeleteThis@mikeash.com> wrote:

 > This means
 > that you can't build things like collections classes that can hold
 > arbitrary primitive types the way you can in a templated language, or in a
 > fully dynamically-typed language.

Rubbish. I can easily create a collection that holds only objects in
the Foo class. I can go even further, and create collections that hold
classes that merely conform to a Bar protocol, or even only those
objects that that are polymorphic for a particular -foobar method.
Those are things you cannot do in C++ (unless you wage an internal war
on its type system), and the only reason you don't see a lot of
type-defined hackery in ObjC is because, go figure, it has actual
*objects*. There is hardly every a need for a restricted collection
*because* they can contain arbitrary objects; ponder that paradox and
you'll improve your OO skills greatly.

No, you don't get the compiler checking types for you if you happen to
implement the above dynamically (e.g., [[NSTypedArray alloc]
initWithType: [NSString class]], but you do the same templating hackery
that C++ does and you're free to pollute the compile and runtime with
any number of generated sublcasses (e.g., NSStringArray, NSNumberArray,
etc. with correspondingly typed accessors) and you'd get the same
"features" some people seem to jump for joy over in C++.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
user391

External


Since: Dec 09, 2004
Posts: 4



(Msg. 8) Posted: Tue Dec 14, 2004 11:40 am
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-12-09 03:17:58 +0100, Tommy Nordgren
<tommy.nordgren.RemoveThis@nospam_chello.se> said:

 > I've been using PowerPlant to program for MacOS 9.
 > Since I've recently upgraded to MacOS X, and don't currently have the
 > funds to purchase a CW upgrade, I wonder wether there are any free
 > Application frameworks written in C++, that includes a User Interface
 > editor.
 > (Also - Does Objective C support template parameters and template
 > specialisations? If so, I might try using Cocoa instead)
 > Tommy Nordgren

I've already checked out the nitrogen package on sourceforge. According
to them, the nitrogen project have not released any files. The Nitrogen
packege also appears to be mainly functional in style.
I will need an object oriented framework, written in C++ or another
language with full template support, in order to port a C++ template
library that I've already written for PowerPlant 2.0 (
Distributed with Metrowerks Codewarrior Pro 5).
The current version uses inheritance from PowerPlant LPane subclasses,
in order to handle text drawing.

Tommy Nordgren<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 1083



(Msg. 9) Posted: Tue Dec 14, 2004 12:40 pm
Post subject: Re: Any free C++ Application frameworks for MacOS X? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <2004121417074416807%tommynordgren@nospamchellose>,
Tommy Nordgren <tommy.nordgren DeleteThis @nospam_chello.se> wrote:

 > I've already checked out the nitrogen package on sourceforge. According
 > to them, the nitrogen project have not released any files. The Nitrogen
 > packege also appears to be mainly functional in style.

Yes, it has not released any tarballs. Fetch Nitrogen using CVS, the
directions are on the on the CVS page of the project.

As for functional versus OO: Nitrogen uses the Generic Programming
features of C++, and it lets the O.S. objects hold state. But, you can
certainly write your own Pane class that "has a" HIView, and then your
pane registers carbon event handlers to give it its behavior, which in
turn call Nitrogen wrapped Carbon calls.

Nitrogen wraps Carbon and handles conversion of error codes to
exceptions, reasonable return values, and default values for rarely used
arguments so your code is easier to read and maintain.

--
David Phillip Oster<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Any free C++ Application frameworks for MacOS X? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Application requires Mac version..... - Greetings, I work for the company (Progeny Software) who developed an application/ utility for the easy creation of timeline charts (www.timelinemaker.com). As you can see, it is a Windoze app and as such has been selling extremely well into many..

MacOS X, X11 and GLX - Hello. I'm not sure, if I selected this group correctly. I have some code, which uses X11 and GLX/OpenGL. Unfortunatly, I cannot rewrite it using MacOS X native API, so, I have to use MacOS X's X11 application. In my programm I: 1) select specific..

.Net od Mono under MacOS X? - Hi, I'm just new to Mac and I would like to do my first progrmming steps on the Mac. Is there something like .Net or Mono existing for The Mac OS X Platform? Greetings Christoph

MacOS X small stack? - ok, perhaps i'm just being an idiot, but can someone tell me why this doesn't work? int main ( int argc, char **argv ) { int foo[160000]; return 1; } It crashes when i try to run it (the crash log is at the bottom of the message). I'm running...

ANN: myPDA3.1a3 for Zaurus ROM 3.10 available -> MacOS X/C.. - A new alpha release (well, more a concept study) is released. It was modified to run on the Zaurus with ROM 3.10. It has been tested on a Z5500G, but feedback/support from the Z5600 and C7xx users is very welcome! The goal of myPDA is to come to a MacOS...
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]