Business Machine

Technology, business
and innovation.

And, not least, about
the Mac.

Weblog Archive Cutedge

by: Bernard Teo

Creative Commons License

Copyright © 2003-2012
Bernard Teo
Some Rights Reserved.

Fri 22 Jul 2011

OS X Lion's 3000 new APIs

Category : Technology/Lion3000APIs.txt

If you get to see Apple's Developer pages, you will see this page about the 3000 new APIs in Lion :

But the other side of the story, about the APIs that are lost or being pruned away (being deprecated in developer-speak) - that is not so well known.

Among those being deprecated are two specific API calls that I've used to build all these server setup apps. They're the calls that allow my system configuration tools to acquire admin privileges from the user so that they can move files into protected directories like /Library and /System/Library and /etc. These calls are going away and they don't look like being replaced. So if I don't find a way to get around this, I won't be able to build any more server setup apps going forward.

I would leave the conspiracy theories to others, like Apple wants to own everything (well, I'm not even allowed into the App Store with these apps - Apple specifically forbids apps that require escalation to admin privileges).

But I think I can build pretty good server administration tools, if at least only for my own use. So I will need to find another way. And soon.

But before that, I need to get Luca, my accounting app, working in Lion. It's not just a simple re-compile for Lion because Luca needs to go through database frameworks (like my version of Microsoft's ODBC calls) to get to the database servers and these frameworks need to be built from source for Lion and often they can fail to build when the Mac OS changes or the MySQL or PostgreSQL versions change. "So you want to charge even though you have no new features?" It's work, man, and I'll probably build this version of Luca only for the people who really need it.

(And I've got nib user-interface files that I can't now open in Lion because the system for building Interface Builder plug-ins change in Lion. There isn't even an Interface in Lion. It's all built into Xcode which has changed, drastically.)

Posted at 10:09AM UTC | permalink

OS X Lion's AFP

Category : Technology/OSXLionAFP.txt

OS X Lion doesn't support FTP, i.e., you can't share files from one machine to another using FTP. It's all AFP (Apple Filing Protocol) now.

I've been building my own Adobe GoLive/Dreamweaver replacement because I want to be Adobe-free on my Macs. (I'm now totally free of any Microsoft product). It's called Duomo. But when I try to connect to my server, so I can upload this blog entry (I built a blog editor into Duomo so I can see what the blog entry looks like, exactly, as I am typing it), I got an error with AFP. But I'm sure I tested this with the developers' GM version of Lion and it was OK. So this is a mystery and it makes me worry about what else might break.

P.S. : I've been installing and re-installing Lion today. I thought I had finally settled on a fully equipped system on my iMac today, with the developer resources all set up properly so I can finally dive deeper (and much deeper) into Lion and Lion Server. But I found I made the partition too small for what I planned to do and, for some reason, I couldn't use Disk Utilities to increase the partition size. So back to doing another installation. Hope this will be really it, so I can get back to work.

Posted at 9:04AM UTC | permalink

Put your Mac to Work Now how would you do something like that?

Weblogs. Download and start a weblog of your own.

A Mac Business Toolbox
A survey of the possibilities

A Business Scenario
How we could use Macs in businesses

VPN Enabler for Mavericks

MailServe for Mavericks

DNS Enabler for Mavericks

DNS Agent for Mavericks

WebMon for Mavericks

Luca for Mavericks

Liya for Mountain Lion & Mavericks

Postfix Enabler for Tiger and Panther

Sendmail Enabler for Jaguar

Services running on this server, a Mac Mini running Mac OS X 10.9.2 Mavericks:

  • Apache 2 Web Server
  • Postfix Mail Server
  • Dovecot IMAP Server
  • Fetchmail
  • SpamBayes Spam Filter
  • Procmail
  • BIND DNS Server
  • DNS Agent
  • WebDAV Server
  • VPN Server
  • PHP-based weblog
  • MySQL database
  • PostgreSQL database

all set up using MailServe, WebMon, DNS Enabler, DNS Agent, VPN Enabler, Liya and our SQL installers, all on Mavericks.