Roguish wrote:
Why not? I know tons of stuff applicable to Windows, I'd like to know more about Mac OS. And the best teacher is experience in my opinion.
But writing something like a window manager is hard. Wouldn't you rather start off slowly?
"Snap" is a rather convienient window resizing feature of Windows 7.
I have Windows 7 for running IE 9 to test web sites. It is dog-slow to I avoid it whenever possible.
XCode isn't my problem, the minimalistic window controls in Mac OS X are my problem. But I only have to deal with them in an irritating fashion when I'm coding in XCode
Xcode is pretty-much an all-encompassing environment. You should only have one Xcode window open. Source files are in the editing pane.
I just didn't want to start a flame war over operating systems. I personally don't have an OS preference; if an application I need is only on Mac OS then I'll use Mac OS, if I need to write a document I'll use Word in Win7, if I need to rapidly prototype a script for research purposes I'll use Ubuntu.
This is not Ars or Slashdot. This is Apple-land. Macs rule - end of story. If you try some Mac apps, you might find that Pages does anything Word does three times faster and OS X does anything Ubuntu does, only better.
It's a free country. Could you suggest a better one besides the developer tutorials in the Mac Developer Library? I've written a couple drivers using it, but I can't seem to find the correct wording to locate the current topic in there.
No, it isn't. As I said above, this is Apple-land. You asked about a good project to get your feet wet in the Apple OS development arena. Anything involving X11 would be a very poor project for that purpose because it would not teach you one thing about Apple OS development. If you want to learn about X11, then do something in X11. If you want to write a Mac application, then do that.
Really? What would you call Mission Control then (I finally succeeded with Google)?
You are talking X11-isms. You aren't going to replace Mission Control.
How about Inkscape, the free SVG editor? Which is still in active development. And as of this post requires Quartz to create an X11 window to run in. I'm sure they'll get to updating it eventually, but until then I'd rather not shell out for Illustrator just to make SVG's quickly.
Adobe is not really a Mac development house anymore. They just churn out ugly, expensive cross-platform bloatware. Adobe's idea of an icon is a square with an "A" in it.
If you are looking for quick and easy to use vector drawing tools, the Developer forum might not be the right place to ask. I use Logoist. It's not free but I can create documents faster than you can download and launch Inkscape.
Or maybe you just aren't familiar with what "Window Manager" means.
I know what a "Window Manager" is. If you want to ask something specific, please do so.
I want to code an application for OS X that would allow me to very quickly resize the active window to take up the right half of my screen by pressing command+<right arrow> (or something similar).
Was that so hard?
The only shortcuts similar to what I want (that I use) are command+m (minimize) and command+<down arrow> (open current selection using the default app). Three existing window managers that I know of that seem promising and have nice feature sets are SizeUp, Cinch, and Optimal Layout. But as I mentioned earlier I want to code it myself. As an exercise. To learn.
You could cobble together some AppleScript such as you have already posted. However, that isn't going to teach you anything about OS X development either.
Next time could you be a little less smug (and a lot more helpful) when replying to an obviously new member to the forums?
Only if you meet me halfway. What kind of welcome would I get if I showed up in a Windows forum asking how I could learn about .NET by writing a Linux device driver? And then, for good measure, I call Visual Studio painful because it doesn't support some Mac features that Windows users have never heard of.
This is a different world. There are no window managers and there never have been. Asking about X11 in OS X is like asking about DOS development in Windows. Sure, there are some people who still do that stuff, but I would never suggest anyone start there. X11 is just part of the UNIX compatibility layer - a foreign add-on. Most of the open source is in that layer too. If by "open source" you mean "free software", you should know that free software is pretty much incompatible with the Apple ecosystem and not by Apple's decision.
I suggest you start by writing some applications. Use the Xcode project templates in File > New > Project > Cocoa Application. If you want to start on the command line, do File > New > Project > Command Line Tool > Foundation. Get used to Cocoa and Objective-C.