Cocoa Quickies

Well since I am working a lot with cocoa lately, I came across two things that you may like. Let’s start…

1) Have you every tried to print out or display the percentage ‘%’ sign with Cocoa? ;) I haven’t and it was quite tricky, although after 20 minutes (hehe) I found a way to do it… so here we go:

NSLog(@"Here is my percentage sing %%");

2) I wanted to implement a method that will go through all my files in my home directory. I couldn’t believe how easy that was. I have done it in C before and it was really really hard! Thanks God, cocoa does it with a few lines:

NSString *path = [NSString stringWithFormat:@”%@/”,NSHomeDirectory()]; 
NSFileManager *manager = [NSFileManager defaultManager];
NSDirectoryEnumerator *dirEnum = [manager enumeratorAtPath:path];
NSString *file;
 
while (file = [dirEnum nextObject]){
NSLog(@”%@”,file );
}

BTW… NSThread rocks!!!

Thursday, February 18, 2010   ()
Pretty smart right?
Source: Foobar

Pretty smart right?

Source: Foobar

()

Website

  • Stranger: New web design?
  • Patrick: Yeah, this time is minimal :P
  • Stranger: Link please....
  • Patrick: http://www.nscoding.co.uk
()

Greek Radio 1.20 rejected

Reason:

Dear Mr. Chamelo,

Thank you for submitting your update to Greek Radio to the App Store.  During our review of your application we found it is using a private API, which is in violation of the iPhone Developer Program License Agreement section 3.3.1; “3.3.1 Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs.” While your application has not been rejected, it would be appropriate to resolve this issue in your next update.

The non-public API that is included in your application is underPageBackgroundColor.

Please resolve this issue in your next update to Greek Radio.

Regards,

iPhone Developer Program - OMFG!!!

Friday, December 4, 2009   ()

I hate you annoying bug!

HI once again…

Is been a long time since my last post but university and some other things limited my spare time. Anyway here we are!

There was a really annoying bug with Dock Spaces 3.05 and Snow leopard… I am 100% sure that if you used it, you came across this overriding bug.

Simple Dock Spaces was replacing e.g. ‘Dock 1’ with ‘Dock 2’ and that was making the software completely useless…

I was trying to figure out what the heck was going on! Seriously, an application that was working properly with 10.5, how come and has such an issue with 10.6?

It took me quite time to find out that the problem wasn’t in the code!!!


  • YES it was the Dock.app itself. What do I mean?

Simple, while I was killing the Dock process and copying the new dock configuration file, Dock.app was overriding the plist file with the contents of the latest Dock without reading the new configuration…

Hopefully now is fixed with one of my magics!!!

TADA… ;)

Wednesday, November 25, 2009   ()

-

Dock Spaces Screencast

()

ESA conference

http://s3.amazonaws.com/ember/hQ5K7fyBXLeSlOMNSmlZ7SrQqgvlzAH3_m.png
Me and My poster :)

Friday, November 20, 2009   ()

Dock Spaces 3.01beta

Here we are…

The new version is out trying to resolve overwriting issues and support Snow Leopard.

You can find the new version on the website and drop me an email if you want to support the project.

That’s all for now,

Patrick

PS: Anyone who is interested to help with the design?

Monday, October 19, 2009   ()

Statistique (Is out)

Yes!!! It was about time… Really frustrating procedure of accepting a utility app. Apple wanted to remove “Free Memory” and they manage to spent 2 months on postponing the release!!!


I don’t know why… but those two months belong to the past. Now to make it up to you, I’ll spare few licenses to the lucky ones!


  1. KNLR73FMPT64
  2. K9H33EAEEXR4
  3. TLR44JJANWLA
  4. 9T4NPXTNWTP4
  5. 46R4KFP6NPNL
  6. 4WPE4ELFTKPR
  7. HR97FEHHT9FY
  8. LLWNHJRNEKA7
  9. 3LHWENKJXKNX
  10. JK4HWENRMEPH


Download Version 1.00 for iPhone


Regards,

Patrick

Thursday, October 8, 2009   ()

Statistique (In Review)

It seems that statistique will take a while to be released!

Apple rejected it because of the “free memory” functionality. I had to remove the “free” button so I can be accepted. More like a tracking utility of memory and battery.

Anyway…

Your application, Statistique, is requiring unexpected additional time for review.   We apologize for the delay, and will update you with further status as soon as we are able.”

I assume that it will be out soon…


Friday, September 18, 2009   ()