News for hackers. Stuff that matters.
Re:Using Slate: A Hacker's Window Manager for OSX by mej10 on Wednesday November 21, 2012 @10:06PM (#4817349)
I have a simple tiling window manager I wrote for OSX. Does this project support tiling? I am guessing no: "Slate is a keyboard-driven window management program for Mac OSX"

Why use this instead of a tiling wm?

Re:Using Slate: A Hacker's Window Manager for OSX by jrajav on Wednesday November 21, 2012 @10:08PM (#4817353)
How does your WM work? I was under the impression that a true tiling WM was impossible on OS X, and that programs like Slate were the best compromise.

Edit: Details please.

Re:Using Slate: A Hacker's Window Manager for OSX by mej10 on Wednesday November 21, 2012 @10:13PM (#4817368)
By using the Accessibility APIs. I imagine the core is implemented pretty similarly to Slate as I think there are only a couple ways to implement window management features.

It is pretty hacky in parts. For example, some windows have an absolute minimum size that they can't be resized beyond, so I have some logic that figures that out and deals with it. The hiding/showing of windows is also not as robust as I would like, but it works.

There are a lot of other examples where I have added things based on observation, rather than documentation.

Re:Using Slate: A Hacker's Window Manager for OSX by rjzzleep on Wednesday November 21, 2012 @11:01PM (#4817462)
it's not impossible the problem is that the real wm is just a stub and the main windowmanager is written into one of the core libraries.

Last I remember you could compile code and link it to an existing library, or increase one of the sections and add loader code for your own binary, but I don't however know if this is still possible with code signing in the newer osx's.

The main problem is that you'd have to disassemble everything since it's completely undocumented terrain. Although on the otherhand if it's objc assembly you might just be lucky, since that reads pretty much like a text book.

Re:Using Slate: A Hacker's Window Manager for OSX by numbnuts on Thursday November 22, 2012 @12:24AM (#4817602)
Because there aren't many dynamic tiling WMs on OSX. The only one I know of is TylerWM and last I heard it didn't work very well.
Re:Using Slate: A Hacker's Window Manager for OSX by JoelMcCracken on Wednesday November 21, 2012 @10:08PM (#4817354)
because it supports native osx apps, not x11 apps
Re:Using Slate: A Hacker's Window Manager for OSX by mej10 on Wednesday November 21, 2012 @10:10PM (#4817358)
My WM supports only native OSX apps. I have never tried it with any X11 applications.

Also, I noticed below you said someone should do this in MacRuby. My WM is written in MacRuby. Maybe I should release it.

Re:Using Slate: A Hacker's Window Manager for OSX by trishume on Wednesday November 21, 2012 @10:26PM (#4817393)
You should. I'm still going to stick with Slate though because I use it as so much more than a window manager.
Re:Using Slate: A Hacker's Window Manager for OSX by gridaphobe on Wednesday November 21, 2012 @10:45PM (#4817431)
I'd be very interested to see/try it. The lack of a decent WM in OSX is one of the main things that keeps ArchLinux on my MBA.
Re:Using Slate: A Hacker's Window Manager for OSX by JoelMcCracken on Thursday November 22, 2012 @01:23AM (#4817743)
Oh, I see, I misread your first comment. Yes, you should release it. I'll certainly use it and probably contribute to it.