Archive for the 'Obj-c' Category
Alpha Release For Gity - A New Git App For Mac
I’m really excited to share this news. I’ve been working on a git app for OS X for about 3 months. And this is to announce the first alpha release; it’ll be free during alpha and beta. It requires Mac OS X Snow Leopard - it uses Grand Central Dispatch, and some other new API’s that are only available on 10.6.
My schedule is tentative right now. The bug and features list before a final release is very small, so I’m crossing my fingers for two months for a final release. My timeline will also expand or contract based off of feedback and bug reports I get. So make sure to try it, break it, and ask about features. Just don’t swear at me please.
You’ll notice that there are three menu items that are always disabled, and the submodule feature is completely taken out. I had to disable those because I couldn’t complete them in time. I needed a break, and am really excited to get this out. It’s one of those situations that I’m sure some of you have run into - I could have continued working on this for three more months before showing anyone. But it’s time to let it out and start getting feedback.
I should also note that some other features you won’t see in Gity yet are “inspecting” features; most notably diff, or even looking at what the contents of the file is. I purposefully left this out for now. Gity will have two “final” releases. The first one mentioned above, the second sometime in the future. It will include diff tools, and hunk/line tools. But hold on to your panties that release is further away.
You should be pretty familiar with using git from command-line; Gity uses the same terminology - so the more familiar you are the better. If you have questions about what certain things do, the best reference is the man pages.
I just put up the new site here. And I’ve also got a forum in place for feedback and communication.
15 commentsApple System Log Cocoa Wrapper
Here’s a quick apple system log cocoa wrapper. Open the terminal, and type “man asl,” asl is the wrapper around syslog - which seems to be the first syslog for apple. The Console app (/Applications/Utilities/Console) shows all messages sent through asl.
Here’s a link to the files:
GDASLLog.h
GDASLLog.m
GDASLLogManager.h
GDASLLogManager.m
And here’s how you want to use it:
GDASLLog * log = [[GDASLLog alloc] initWithSender:@"MyAppName" facility:@"com.codeendeavor.MyAppName" connectsImmediately:TRUE]; //optionally set the file to write to. You'll still see logs in Console if you don't set this, //but this way you can get the log file if needed. [log setLogFile:@"/Library/Logs/MyApp"]; [log info:@"HELLO WORLD"];
And there’s a manager to hold references to your logs:
GDASLLogManager * gdLogMan = [GDASLLogManager sharedInstance]; [gdLogMan setLog:log forKey:@"logID"]; //GDASLLog * log = [gdLogMan getLogForKey:@"logID"];
I’ve been using this in an app to log some problems that were happening on another computer. I don’t leave these in when it’s ready to go. This just simplifies writing out some logs.
Enjoy.
1 comment