Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > x11 + (c++) + mac os x

x11 + (c++) + mac os x
Thread Tools
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Feb 18, 2004, 10:28 PM
 
i was wondering if any of you have any good resources to building c++ applications using the x11 ide's. can't seem to find any help with building applications all help seems to be on just using it to run unix apps. thx in advance.

mafia
     
Registered User
Join Date: Oct 2003
Status: Offline
Reply With Quote
Feb 20, 2004, 02:03 AM
 
i was wondering if any of you have any good resources to building c++ applications using the x11 ide's.

X11 IDE's? Integrated development environments that run on X?

Perhaps you mean, the X11 API's. It's quite arduous to program directly
using xlib. That's why not many folks do it, and why there's not many
books on the subject. Try the XFree86 website for links. Though, xlib
(and the slightly higher-level x-intrinsics (Xt?) library) is a C API, not
C++.

Most GUI toolkits (like GTK+ and QT) are written to wrap the xlib calls in
higher-level functions or classes to make the application-programmer's life
easier.
     
Mafia  (op)
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Feb 20, 2004, 03:58 PM
 
hey thx for reply i meant api, but just couldn't think of it and just typed ide... i'll check oout the site.

mafia
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 20, 2004, 06:50 PM
 
Not to mention you shouldn't be using X11 if you want a true OS X experience
     
Mafia  (op)
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Feb 20, 2004, 11:06 PM
 
tru but i satill haven't gotteen the hang of cocoa yet.
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Feb 21, 2004, 10:22 AM
 
Originally posted by Mafia:
tru but i satill haven't gotteen the hang of cocoa yet.
So you are going to learn to program for X11 instead? That's silly. Trust me. I've done both Qt and Cocoa. Cocoa is better and makes more sense.

As per Cocoa: do you know what the model/view/controller paradigm is? (start there)
and Qt: it's not C++, but it's like C++.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Mafia  (op)
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Feb 21, 2004, 11:39 AM
 
its not that i was going to learn something all new i know c and c++ i read that u could program gui's with c and c++ in x11 so i asked an opinion before i tried it.


mafia
     
Professional Poster
Join Date: Sep 2000
Location: Texas
Status: Offline
Reply With Quote
Feb 21, 2004, 12:54 PM
 
GUI's in cocoa are very easy. Also, you can use your existing c and c++ in cocoa as well. Trust me, very easy!
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 21, 2004, 12:54 PM
 
Originally posted by Mafia:
its not that i was going to learn something all new i know c and c++ i read that u could program gui's with c and c++ in x11 so i asked an opinion before i tried it.
You can write a fully OS X compliant GUI with nothing but C API calls. It's called Carbon. Or you could spend, what, a few hours reading Apple's Obj-C PDF to understand the language (it's really that easy) and then run off and start doing Cocoa apps.

X11 is not the way to go.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2