Tech and a few other things RSS 2.0
# Friday, January 01, 2010


The Problem:
Not being able to do a simple compare in an "if statement" between two alpha or numerical statements while programing in objective C.

The Solution:
NSOrderedSame

Example Of Use:
This compares the value of "key" to the value of "support." If they are equal then you get a return value of true.
if ([key compare:Support] == NSOrderedSame)
Explanation:
For some reason Objective-C decided to make it a little bit harder to compare values. Instead of just using the traditional way "[key compare:Support]" return a true value for the if statement OR "([key compare:Support] == 0) OR "([key compare:Support] == true)" they decided to make it a little bit more complex. As demonstrated above. I'm sure the writers of Objective-C have a good reason for this, but one more level of abstraction could make Objective-C that much friendlier to it's programmers and isn't that what it's all about in the end...getting more people to develop in your language.

Some of other comparisons you might want to use are:
NSOrderedAscending -- The left operand is smaller than the right operand.
This is equivalent to using "<" in most languages.

NSOrderedDescending -- The left operand is greater than the right operand.
This is equivalent to using ">" in most languages.
Friday, January 01, 2010 7:51:02 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Mac | Mac OS X | Objective C
# Thursday, September 17, 2009

Error Readout:

unable to read unknown load command 0x80000022

Fix:
Upgrade to xCode 3.2 with the 10.6 libraries.

Explanation:
This error doesn't do anything to your application except provide some really annoying output to your Debugger Console. File under annoying. You can get xCode 3.2 DOWNLOAD HERE for free at the apple website. It will require you to create a login.
Thursday, September 17, 2009 8:01:43 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Mac | Mac OS X | Objective C
# Sunday, August 30, 2009
Snow Leopard has only been out since Friday, but a few people got the OS upgrade early and blogged all the good stuff. Knowing this, I'm still going to blog about the new OS from Apple.

I'll cover the price, the security upgrade, the cool new features, the size reduction and make a fun little video demonstrating some of the features in Snow Leopard.

$29 dollars. The low price is largely because Snow Leopard is more of an upgrade than a whole new OS. It offers only a few new flashy features that mac users have come to expect. Most of its added features are in unseen functionality such as Grand Central Dispatch, that most will never see or care about. Just knowing their computer runs faster is good enough. Examining these aspects Apple marketing said $29 bucks is a fair price. I agree, skip a few drinks this weekend and you have your new upgrade.

Security has always been a big aspect enthusiast place on Apple vs. Windows. Sadly even with this new upgrade, Snow Leopard is not as secure Windows 7. Windows 7 has some new security functionality, such as Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP). Elinor Mills wrote a great article on it here. The real question about Max OS X security: does Apple need to have the latest security practices incorporated into their OS? If their OS isn't being targeted, yet, why put a large costly focus on having the newest security practices when it doesn't reduce any potential threats on their OS. This is a small advantage Apple has by having 5% market share next to Windows world domination market share.
SIDE NOTE: This will most likely be changing with future generations, have you seen a college lecture hall these days, it looks like a glowing apple orchard.

Finally the upgrade has the potential to reduce the size of the OS's footprint on your hard drive up to half in some cases. Curiosity has me wondering how they did such dramatic size reductions while still adding functionality.



Sunday, August 30, 2009 2:10:00 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Mac | Mac OS X | Snow Leopard
# Tuesday, February 03, 2009
The love I have for Apple continually grows stronger.  Here's why. Other then Apple's continual innovation, leading the market in trends: iPod, iPhone, iTunes, superior technology in their OS, and overall beauty, their customer service really wraps up the complete package nicely.

My latest example is an expanding battery (see image). An issue that has been tracked back not to a specific computer manufacturer, but to the company who makes the batteries. This company sells these batteries to Dell and Apple. Understanding the fact that each manufacturer (Apple and Dell) gets the batteries from the same location, how they deal with the situation is the issue at hand. 

Scenario 1 -- Dell
Had I bought a Dell with Microsoft Windows, I would have to call Dell, speak with an Indian representative (work through a language barrier that is only exasperated over the phone), have Dell email a return slip, print the return slip, mail the battery back and have Dell send me a new battery, a 2 day process at minimum.  In my experience I would estimate 3-4 days. 



Scenario 2 -- Apple
Not the case with Apple.  I go online, make an appointment at my local genius bar for 7:15 PM the very same day,  (note: Apple store is open until 9:00 PM on a Saturday...wow), walk in at 7:15 PM, an "Apple Genius" sees me promptly; takes one look at the battery and tells me I have a defective battery. Next the "Apple Genius" goes in the back gets a new battery, scans the old battery's and new battery's barcode and slides the new battery into my laptop. He then looks at me and says, "You are good to go."  Wait?... what?... 7 minutes, that's it?  No out of coverage warranty talk or I need your name, your address and the name of your first born? ...Nice, peace "Apple Genius".  It took more time to walk from my parking spot to the store than the appointment itself.  That is what makes a lifetime Apple customer!
Tuesday, February 03, 2009 6:36:42 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Mac
Navigation
About the author/Disclaimer
        
My name is Ben Coffman. I currently work at Commerce Bank. I'm in love with all things Mac yet I make a living in .NET. I view this as well rounded. When I turn the internet off I focus on family, random hobbies, and sharing moments in life.

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Ben Coffman

Archive
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
All Content © 2010,

Sign In