iPhone Note #10: Creating Custom Settings

September 4th, 2009 rupert Comments off

settings-overview.gif

1. Create a directory on your desktop, name it “Foo”

2. Download this Sample_plist.txt and place it inside foo. Name it as Root.plist

Foo/
Foo/Root.plist

3. Rename Foo to Settings.bundle

Settings.bundle/
Settings.bundle/Root.plist

4. Drag it to your project.

settings-bundle.gif

5. To retrieve a value from the settings.. For example, if we want to retrieve if the “enabled” switch is on or off?

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
BOOL b = [defaults boolForKey:@"enabled_preference"];
Categories: iphone Tags:

OSX CheatSheet

August 26th, 2009 rupert Comments off

1. iTerm – terminal with tabs.

2. MarsEdit- Blog Software. Im doing a local post on a local wordpress then copying and pasting to a remote wordpress.

3. Mac Shortcuts from http://www.danrodney.com/mac/index.html. Here’s a local post and another one.

4. How to create an ISO?

hdiutil makehybrid -o CS3v1.iso CS3

5. chmOX – CHM Viewer in OSX.

6. Git for OS X from google code.

7. Open a finder from terminal

open .

8. Keychain Access asking on passwordless ssh?

ssh-add
Enter passphrase: ******
ssh-add -l <to list your identities>
</to>

Credits goes to http://www.danrodney.com/mac/index.html

Picture 1.png

9. ln -s /Applications/TextMate.app/Contents/Resources/mate /usr/local/bin/mate Read more…

Categories: mac, osx Tags: ,

iPhone Note #9: Sending or Uploading over HTTP Post

August 18th, 2009 Rupert Comments off

In this tutorial, we would use an Objective-C Library: ASIHTTPRequest, which abstracts the complexities of using NSURLConnection

http-final.gif Read more…

Categories: iphone Tags:

iPhone Quick Tip #2: Creating Objective-C Class Diagrams Instantly

August 18th, 2009 Rupert Comments off

Omnigraffle provides a quick and dirty class diagram when you open your XCode projects. Very cool and saves you a lot of time than using VISIO. Read more…

Categories: iphone Tags: ,

iPhone Note #8: Exporting Oracle to SQLite3

August 16th, 2009 Rupert Comments off

Since I’ve been working most of my time with iPhone Dev for the last couple of months, I thought it will be worthwile to post how to import files to SQLite3. In a nutshell, use MesaSQLite’s IMPORT function. It will save you a lot of time. Now it is up to you how to export into a CSV or TAB delimited file. For Oracle, I used SQLDeveloper. For other databases, such as MySQL or Postgres, I’ve used Navicat. Read more…

Categories: iphone, oracle, sqlite3 Tags: , ,