emperor: (Default)
Add MemoryShare This Entry
posted by [personal profile] emperor at 04:47pm on 14/01/2005
I want to write an Xwrits-alike for MacosX, since Coffeebreak is a)shareware b)crap.

Now, assuming I could find out how to compile C programs against bits of carbon (which I hope is just RTFM) without using Xcode, it'd be a fairly easy bit of C programming, but I'd really like to do this with python.

But. The Carbon interface to python is completely undocumented, and I don't think I'm really l33t enough with Carbon to be able to bullshit my way through installing event handlers and the like.

What should I do? Anyone caught suggesting perl will be shot.
Mood:: 'geeky' geeky
There are 14 comments on this entry. (Reply.)
 
posted by (anonymous) at 08:56am on 14/01/2005
perl!
 
posted by (anonymous) at 09:01am on 14/01/2005
Ow! NopleaseSTOP agh agh agh croak.
emperor: (Default)
posted by [personal profile] emperor at 09:03am on 14/01/2005
*fx*: shoots [livejournal.com profile] senji
 
posted by [identity profile] senji.livejournal.com at 09:13am on 14/01/2005
Ow.

Ow ow ow.

Ow.
 
posted by [identity profile] teleute.livejournal.com at 12:43pm on 14/01/2005
Bugger! you beat me to it!
*sigh*
not that I understood a single sentance of the post except the last two... Oh, and the metasentance 'But.'.
sparrowsion: photo of male house sparrow (string-handling kitten)
posted by [personal profile] sparrowsion at 09:04am on 14/01/2005
Personally, my first port of call would be wxPython, since that's what I'm familiar with. But it's a bit of an overkill, I would think. Tkinter might be more appropriate—I can't remember whether it's included with Apple's install, but if not it's readily available with MacPython. I believe it's also got better documentation.
 
posted by (anonymous) at 09:07am on 14/01/2005
Are you sure you don't mean Cocoa? Carbon is the old Classic Mac API which you probably don't want to use unless you have to. (Cocoa is the Objective C thing that AIUI drives the Aqua GUI and all that jazz.)

(S)
ext_243: (hexa)
posted by [identity profile] xlerb.livejournal.com at 09:10am on 14/01/2005
The only thing I've *had* to do with Carbon is the hotkey interface (nabbing a key combo, whatever application is in the foreground when it's hit). And that's perfectly usable in the middle of a Cocoa app. Otherwise, Carbon really is more for porting old Mac code (and/or coding expertise), at least IMO.

So, isn't there a Python/ObjC bridge through which Cocoa could be used with some degree of sanity and documentedness? (Mind, it'll be a different experience without InterfaceBuilder, but there's no reason why it can't be done.)
emperor: (Default)
posted by [personal profile] emperor at 09:24am on 14/01/2005
There is, as [livejournal.com profile] mobbsy pointed out. I think I'm just too used to gtk and fiends, where you could do the whole jing-bang-lot without leaving emacs, and then just type "make" :)
 
posted by [identity profile] mobbsy.livejournal.com at 09:13am on 14/01/2005
"The most important usage of this is writing Cocoa GUI applications on Mac OS X in pure Python."
http://pyobjc.sourceforge.net/
rmc28: Rachel in hockey gear on the frozen fen at Upware, near Cambridge (Default)
posted by [personal profile] rmc28 at 12:53pm on 14/01/2005
You could port Workrave to Mac ;) </fangirl>
pm215: (Default)
posted by [personal profile] pm215 at 02:01am on 16/01/2005
Can't you just compile Xwrits? MacOSX does support X11, right? Or does it want some obscure X extension that isn't supported?
 
posted by [identity profile] antinomy.livejournal.com at 02:31am on 16/01/2005
I suspect that if you did, it would only be able to keep track of what you were up to in X11 apps, rather than in other OS X apps, wouldn't it? I think [livejournal.com profile] emperor uses X11 a little more than I do, but hardly exclusively...
emperor: (Default)
posted by [personal profile] emperor at 06:18am on 16/01/2005
As [livejournal.com profile] antinomy says, that would only catch X11 events, which given I do quite a lot of work not within X11 would rather miss the point...

October

SunMonTueWedThuFriSat
      1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
26
 
27
 
28
 
29
 
30
 
31