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 > Carbon Graphics and Java

Carbon Graphics and Java
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Cologne, Germany
Status: Offline
Reply With Quote
Oct 2, 2000, 12:42 PM
 
Hi,

I'm trying to do a little Java application that graphs porcessor and memory usage using the output from the ps command.

I could use Swing, of course, but I'd rather get acquainted with Cocoa.
The problem is: There's next to no documentation on the Java interface yet.

It's all there for Objective C, but since I know Java and Apple's pushing Java so hard I'd rather use that than start learning yet another programming language. (Especially since ObjC's syntax takes some getting used to.)

I've looked at the source for Sketch.app, but it doesn't really help much: Sketch only works with vectors and for the graph I have in mind a bitmap would probably be much better.

There is an NSGraphics object that even has a method drawBitmap, however there absolutely no docs on it and many paramtetrs that don't readily make sense to me.

I'll probably fiddle around with it trying to find out just what all those Strings and booleans and ints do, but I'd appreciate any help from someone in the know on this topic.

Thanks.

Jens
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/L dpu s:- a- C+++ UL P++ L++ E W+++ N+
o K- w-- O M++ V-
PS++ PE- Y+ PGP t+ 5- X-
R tv+ b++ DI++ D++ G e+ h+ r++ y+
------END GEEK CODE BLOCK------
     
   
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 03:12 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