Aleksandar • Vacić

iOS bits and pieces

Protected posts?

As I’m baby stepping through the iPhone SDK development, I encounter some strange stuff. Given the unfortunate (to say the least) circumstance of the NDA still in place as of this writing, I can’t post publicly about it. I can’t ask on forums nor would anyone be allowed to answer. That’s how NDA stuff works.

In order not to lose these stuff and to keep note of problem and solution (if I find one) for future benefit, I’m doing this password-protected posts that I will reveal once NDA is lifted.

Which hopefully will happen' at some point.

update: it did not take long - just days after I did this, Apple killed the NDA.

Confusing stuff: NSLog and SystemSoundID

In my first attemps with iPhone SDK programming – while working on Running Mate’s early proof of concepts – I tested the playing of short sound effects. That’s where I encountered this strange error:

1
2
warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found). 
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).

As you can see, this error is entirely meaningless on its own – if this was true, none of apps would work. Which was not the case. This happened with 2.1 final SDK, where I last checked for this.

It turns out that problem was with this line:

1
NSLog(@"Play sound: %@", _soundID);

where _soundID is of type SystemSoundID. Commenting this line out resolved the problem.

My guess here is that SystemSoundID does not have description properly implemented. %@ should cover any object that accepts description message, so it’s not strange that a beginner would try to log it as given above. And would be mightily confused by the message in the console window, as I was.

I got out of this by commenting out lines of code, one by one, starting from the last one I added.

Hopefully someone else will find this and saves oneself some time and nerves.

aleck.smugmug.com

I have signed up for SmugMug account as well. I will test both them and Zenfolio for a year, in order to see which one will fair better, on various aspects. Ease of use, features, responsiveness of the parent company and the amount of sales made.

SmugMug uses EZ Prints which I believe do ship internationally so this is the place to go if you’re not from US or Canada.

aleck.zenfolio.com

At this address I have started an experiment of selling my photos. Zenfolio works with MPix as printing partner which is sadly limited to US and Canada only.

Take a look, comments welcome.