Universal Binaries are a wonderful thing, and not just if you are still writing Mac Power PC code, they are just as useful in the iOS development world.
If you do any amount of iOS development, chances are you have used (in one way or another) a static library.
Usually when you use a static library you get (or compile) 2 versions.
One for the device, and one for the simulator.
This is fine until you want to add the library to your app.
If you are using the simulator and the device for testing you have to play a swapping game with the corresponding library version.
Wouldn’t it be easier if you could just have 1 version of the library and it worked on the device or the simulator without you having to make any changes?
Sounds nice? I would say so, and luckily it is pretty easy.
The first thing you need to do is open a Terminal window (don’t worry, its just 1 command)
Use the following command (replacing the library path and name, with your libraries information):
lipo -output <StaticLibraryUniversal>.a -create <StaticLibraryDevice>.a -arch i386 <StaticLibrarySimulator>.a
Thats it!
Just use the new static library file in your project and you can move between the device and the simulator without worry about anything!
Have fun.
Tags: iOS, Lipo, Mac, Static Library, Universal
Mike Ash has turned his famous Friday Question and Answer series into a book, available in either iBooks or Kindle versions.
Mike is an amazingly smart guy, who knows more about programming then you could ever imagine.
If you work with Objective-C you owe it to yourself to check out his book and his site.
Tags: Apple, C, Cocoa, Cocoa Touch, Objective-C, Programming
Posted by Dallas
on January 01, 2011
Apple,
iDeskCal,
Mac,
Mac App Store,
Programs /
No Comments
iDeskCal has officially been approved for the Mac App Store!
Look for it when the Mac App Store is released on January 6th.
Tags: iDeskCal, Mac, Mac App Store
Posted by Dallas
on December 17, 2010
Apple,
Fanboy,
General,
HashBang Ind,
iDeskCal,
iOS,
iPhone,
Mac,
Personal,
Programming,
Programs /
No Comments
Inspired by a similar post I saw today, I thought I would take a snap of my computer setup at work and share it with all of you.
I have uploaded it to Flickr with notes on what everything is, but I will attach the basics to this post.

This is my setup at work – Moki Networks – mokinetworks.com
All Displays powered by the iMac.
27″ iMac – 2.8 GHz Intel Core i7. 8GB RAM – Running Xcode
Samsung 27″ Monitor – Running my Mac app ‘iDeskCal’ www.HashBangInd.com/iDeskCal and Safari viewing www.philhendrieshow.com
Dell 24″ Monitor – Powered via EVGA UV Plus+ 16 (USB Display Adapter) Running iPhone 4 Simulator and Xcode Console
iPad running as a monitor using the app Air Display. Using for Mac OS Dock, Twitter (Echofon), and IM (Adium)
iPhone 4 running Safari, viewing personal Mac and iOS company HashBang Industries. HashBangInd.com
iPhone 3GS
iPhone 3G (broken screen but working)
iPod Touch – 2nd Generation
iPhone – 1st Generation
Bose QuietComfort 15 Noise Canceling Headphones
Dr Pepper!
Tags: iOS, Mac, Work
I was VERY disappointed that I was unable to make it to Apple’s WWDC (World Wide Developer Conference) this year (it was last week).
The sessions are always VERY informative, but it is also a excellent chance to not only meet with other Mac/iOS developers, but you have the chance to talk one on one with the very people who are writing the software and API’s (Application Programming Interface) that we write software for/with.
Apple does make the videos of the sessions (along with the slides) available to everyone that attends, and allows those that didn’t attend to purchase the videos.
Before last year, these videos usually took around 6 months to become available, however last year they had them released within a month.
This year Apple TOTALLY outdid themselves and have released the videos all today!
That is LESS than 1 week!
Not only did they release everything within a week, but Apple has made all of the videos and slides available to ALL registered developers (even the free developer accounts) FOR FREE!!! That is a $500 savings for those that couldn’t attend!
I only have 2 things to say…
First: Good bye to my Hard Drive space
(The videos are available in HD and Standard formats this year)
and Secondly… Classy Apple! VERY VERY CLASSY!
Reminder: Even though the videos did not cost this year, they are still covered under an NDA that you agree to when signing up for a developer account. Don’t make them sorry that they were so giving.
Tags: Apple, WWDC
Posted by Dallas
on June 17, 2010
Apple /
No Comments
Those are the words that come to mind when I see Apple’s latest revision of the Mac Mini.
It’s amazing how few pieces are needed.


Tags: Apple, Mac, Mac Mini
Newsprint version 1.1 has been Approved and should start showing up in the App Store shortly!
As an extra treat we are offering Newsprint for 50% off for the next week!
So don’t delay and pick up a copy today.
For more information on Newsprint, please visit: NewsprintApp.com
To access Newsprint in the iTunes App Store, please visit: App Store
*On sale from April 21, 2010 until April 28, 2010.
*50% off is $2.99, based on the normal price of $4.99
Tags: App Store, Apple, HashBang Industries, Newsprint
Newsprint 1.1 has been submitted to the App Store!
Now to get to work on the iPad version….
Tags: App Store, Newsprint
My latest application, Newsprint, is now available in the iPhone App Store!
Newsprint is a professional grade feed (RSS/Atom) reader for the iPhone and iPod touch, with support for Google Reader.
You can find more info on Newsprint at: http://www.NewsprintApp.com
You can find Newsprint in the App Store by using this link: http://www.NewsprintApp.com/download
Tags: iPhone, Newsprint
Posted by Dallas
on January 24, 2010
Apple,
Mac,
Personal /
1 Comment
On January 24th, 1984, Steve Jobs pulled a 128K Mac out of its case in front of a crowd of reporters, turned it on, and let the computer introduce itself to the world. The rest, as they say, is history.
On January 25th, 1982, I was born.
It’s kind of sad that I am only 2 years older then the Mac.
Tags: Apple, Birthday, Dallas, Mac