Archive for the ‘Objective-C’

MacRuby, Rails Mail Preview10.26.11

I recently wrote an app called RailsMailPreview which will capture any emails being sent from your Rails app.
Once they are captured you can preview what they will look like to the end user.

It is available for purchase from the Mac App Store:
http://nufex.com/link/rails-mail-preview

Posted in Cocoa, Mac, MacRuby, Objective-C, Programming, Projects, Ruby, Ruby On Railswith Comments Off on MacRuby, Rails Mail Preview

Adding a new person to AddressBook, Cocoa AddressBook.framework02.24.11

In the current project that I’m working on I wanted to give the user the ability to add an email to their address book.

The thing I wanted the user to see was AddressBook.app open and show the current person’s email in edit mode.

The way I did that was like so:

Posted in Cocoa, Mac, Objective-C, Programmingwith Comments Off on Adding a new person to AddressBook, Cocoa AddressBook.framework

Cocoa for today10.24.10

I’m going to start posting more code snippets on my blog and each of those posts will be called Cocoa for today and of course the title changes for the specific code I’m writing.

If your working with NSOutlineView and need to deselect all items you can use

the deselect all method from NSOutlineView

[myOutlineView deselectAll:nil];

Posted in Cocoa, Objective-C, Snippetswith Comments Off on Cocoa for today

Update NSConference 201002.25.10



Yes that’s me the first blurry one. Photo by Chuck Toporek.

After attending NSConference USA 2010 in Atlanta, GA all I have to say it was awesome! Really it was. The content was great. The folks were cool and the food was ok not bad. One thing that I really did not like and I think everyone would agree, food was not allowed in the auditorium. I’ve managed to record a few of the talks using QuickTime on my Macbook. I think one of the best talks was “Spelunking OSX” it’s just awesome. The lunch talks were also great. The Cocoa Rumble was really great and entertaining. Hopefully next year it will be at a different city, I have nothing against Atlanta but having a conference in different cities will be great.

Posted in Mac, NSConference, Objective-C, Programmingwith Comments Off on Update NSConference 2010

Atlas – Cappuccino (Objective-J)12.20.09

Atlas is like Xcode. Atlas is built with Cappuccino and Cappuccino is built using a language called Objective-J which is just a superset of JavaScript and its very cool! Just like Objective-C is a superset of C. The best thing I like about it is that it’s so much like Cocoa and Objective-C. The syntax is almost the same, NSObject would be CPObject.

280 North makes Atlas and I signed up for their beta program from beta version 3. Once I had access I played with it but didn’t do much. Now just yesterday I got interested in it again and while reading the forums to see what people where saying I saw a tutorial that caught my interest ( http://blog.jerodsanto.net/2009/11/280-atlas-introductory-screencast/ ) and I decided to write a simple app as-well.

I wrote a simple calculator to calculate the tax of an item but my goal was to find out if NSNotification was being supported and well, it is being supported of course it’s not called NSNotification but called CPNotification. In Objective-J ALL classes are prefixed with CP instead of NS. Here is my source code for the app I wrote using Atlas.

To learn more about Atlas go to their site and read about it and of course try it out!

Francisco Tolmasky – FOWA Maimi 2009 from Carsonified on Vimeo.

Posted in Cappuccino, Mac, Me, Objective-C, Objective-J, Programming, xcodewith Comments Off on Atlas – Cappuccino (Objective-J)

Current Progress10.16.09

So, it’s been while since I last wrote something here.. Well it’s for a good reason, I’ve been busy with work but besides the work hours, I actually managed to create a PHP Framework which I call Cupcake. The reason for the name is being that I wanted a version of CakePHP without lots of the component I will never use. I initially forked CakePHP but ran into some issues with it. So I decided to write my own and implement it that way I thought it should be. That is available on Github.

Another project I’m working on is a Mac OS X Application that will be similar to my previous apps GAMV and LyFOX which were a great success, and I will attempt to release it by the end of this year 2009.

Posted in GAMV, Mac, Me, Objective-C, PHP, Programming, Projectswith Comments Off on Current Progress

iPhone SDK 3.0 GM06.09.09

While looking into my app for deprecated methods I have found one that did not have much documentation to it. It was a delegate method from UIImagePickerControllerDelegate and this is the way I use it for when an image is ready to be posted.

- (void)imagePickerController: (UIImagePickerController *)picker didFinishPickingImage: (UIImage *)img editingInfo: (NSDictionary *)editInfo {
  [[picker parentViewController] dismissModalViewControllerAnimated:YES];
  [image setImage:img];
  [self confirmPhotoUpload];
}

Now the only problem with that method above is that it is now deprecated in the iPhone OS 3.0 SDK and you must now use a method called imagePickerController:didFinishPickingMediaWithInfo:
and the way I use that method is like this:

- (void)imagePickerController: (UIImagePickerController *)picker didFinishPickingMediaWithInfo: (NSDictionary *)info
{
  [[picker parentViewController] dismissModalViewControllerAnimated:YES];
  UIImage * img = [info objectForKey:@"UIImagePickerControllerEditedImage"];
  [image setImage:img];
  [self confirmPhotoUpload];
}

So if your stuck trying to figure out what method to now use, use imagePickerController:didFinishPickingMediaWithInfo: and what will have a NSDictionary with all the needed information about the image.

Posted in iPhone, Me, Objective-C, Programming, Projectswith Comments Off on iPhone SDK 3.0 GM

iPhone SDK 3.0 beta 505.16.09

Today, I was working on Skatr getting it ready for the iPhone OS 3.0 and taking advantage of some of the new features and while I succeeded testing it on my device using the beta 4 version, I had trouble with beta 5. I searched around and found the following post to be very helpful to solving whatever problem was going on with the sdk.

http://www.iphonedevsdk.com/forum/iphone-sdk-development-iphone-os-3-0/17999-profile-doesn-t-match-application-identifier.html

Posted in iPhone, Me, Objective-C, Projects, Skateboarding, skatr, xcodewith Comments Off on iPhone SDK 3.0 beta 5

XCode Template for Adium Plugins04.19.09

This weekend as I wait for Apple’s response to my iPhone App being accepted or rejected. I’ve been wanted to create an Adium Plugin for a while, so now I took the initial steps and made it much easier to begin. I have created a XCode Template for creating your own Adium Plugins.

It can be downloaded over at my github reposity. 
http://github.com/fernyb/adiumplugin/tree/master

Installation

  • Make sure you have the following directory:~/cocoa

If you do not have that directory create it and navigate to it.

  • Make sure to download the Adium source code into the ~/cocoa directory. You will need to use mercurial
    hg clone http://hg.adiumx.com/adium
  • Make sure you have the following directory.
    “/Library/Application Support/Developer/Shared/Xcode/Project Templates/Adium/Plugin”

If that does not exist make sure to create it.

  • Download or clone the git repository:
    git clone git://github.com/fernyb/adiumplugin.git

Copy all files from git repository and place them in:
“/Library/Application Support/Developer/Shared/Xcode/Project Templates/Adium/Plugin”

  • Launch XCode and create new project. On the left side under User Templates you should have a new entry for selecting Adium and selecting Plugin to create.
  • That is it.

Posted in Mac, Me, Objective-C, Programming, Projects, xcodewith Comments Off on XCode Template for Adium Plugins

Skatr for iPhone04.15.09

skatr for iphone

It’s been a little over 4 months of development for my iPhone app. This does not mean just coding for the iPhone app but also working on the back-end server side, creating an API for Skatr to use, and later  become a public API for others to consume.

Things I did for the 4 months of development.

First month, Start from scratch to rewrite www.skatr.us from PHP over to Ruby using the Merb Framework. Although that went short after the announcement of Merb & Rails merge. I figured I needed to port things over to Rails now because eventually Merb will be less supported and the other reason was I already know Rails and Merb was sometimes challenging because I did not know it.

Second Month, Write lots of code to port it form Merb over to Rails and Begin writing the API that will be consumed by Skatr. Also go shopping for a Web Host to host the Web App. I started to re-read books I had on Objective-C and Cocoa and bought a few books and screencasts on iPhone development and paid $99 to Apple to be part of the iPhone Developer program. Started writing code for Skatr.

Third Month, Write Ruby Code and Objective-C code for Skatr Web and Skatr iPhone, Also make a ton of google searches to learn how things are done in iPhone land.

Fourth Month, Complete writing Skatr for iPhone and the web API for Skatr.

It was actually a lot of work doing all this considering I was working at my full-time job and not just a 8 hour job but a few days with emergency releases working over 10 hours. Also to mention it takes me almost a little under 2 hours to commute from work to home because of traffic and then I would continue with my iPhone app till usually around 12:00 AM sometimes 1:00 AM and other days when literally my eyelids where already closed and realizing I’m sleeping and I need to go to bed. It was very tiring. Then wake up early for work and continue the same pattern for about 4 months.

Now that Skatr is completed. I’ve submitted it to Apple, hoping it does not get rejected. Let’s see what happens now. Then hopefully take a vacation?

Posted in iPhone, Me, Objective-C, Projects, Ruby, Ruby On Rails, skatrwith Comments Off on Skatr for iPhone

  • Recent Comments