From Flash to Cocoa (NSViewController)

July 5th, 2008

My world has mainly been encompassed by Flash and Actionscript. That being said though, I am always trying/learning new things. The Cocoa display hierarchy, being a Actionscript oriented person, kinda threw me for a loop, then I listened to this podcast:
(Late Night Cocoa (031): NSViewController with Cathy Shive and Jonathan Dann)

And took at look at these classes:
The XS (extra special) Controllers
From Cathy Shive’s Blog

Anyway, it broke it down for me like this:
NSViewController == DislayObject/Sprite/MovieClip in Actionscript 3 or MovieClip in Actionscript 2 With their linkage set to the proper class (subclass of NSViewController for Cocoa or subclass for the proper class in Actionscript)

In the case of Cocoa however, continuing on the Flash/Actionscript terminlogy, the linkage is set in the NIB/XIB in Interface Builder on the “File’s Owner”

Cool person…

April 15th, 2008

It’s always nice, in the interactive space, when you run across someone who gets it. Kate Pendley, she she gets it. That woman has her hands in everything, you name it:

Mobile
Desktop
Web Applications
etc, etc, etc…

If it has to do with interactive, Kate Pendley has pretty much read about it or is thinking of things to do with it.
Those gears, they are always-a-turning in that girls head.

Anyway, check her out here:
http://www.linkedin.com/pub/6/209/210

Canadian pharmacy viagra
Bulk phentermine
Phentermine free shipping 90 supply no delay
Long term side effects of phentermine
Chlortrimeton
Phentermine blue capules
Online pharmacy xanax
Buy phentermine prescription
Buy cialis uk
How long does xanax stay in the system
Warfarin
Ditropan
Xanax
Filling online prescription viagra
Cheap prices phentermine
Phentermine rx
Viagra patent expiration
Diamox
Viagra discussion
Overnight tramadol
Free shipping on phentermine diet pills
Buy Cialis
Alesse
Anisotropine
Pulmonary hypertension viagra
Levothyroxine
Isometheptene
Compare prices tramadol
Free cialis samples
Cefpodoxime
Phentermine ephedrine
Phentermine no credit card required
Discount viagra
Xanax detoxification
Tramadol no prescription
Dimenhydrinate
Aricept
Discount generic viagra
Time released xanax
Cyber pharmacy viagra
Phentermine and blood in stool
Cialis order
Buy Alprazolam
Cycloserine
Cialis vs levitra
Buy online viagra
Levorphanol
Buy Famvir
Phentermine ingredients
Hydroxychloroquine
Discount vicodin
Zyprexa
Butriptyline
Generic viagra fast shipping
92 accepted cod phentermine
Flagyl
Nizoral
Viagra in canada
Heparin
Irbesartan
Diet phentermine
Phentermine without prescription and energy pill
Levitra cialis info
Canadian pharmacy phentermine
Generic xanax
Skelaxin
Phenylephrine
Clindamycin
Diethylpropion
Dangers of phentermine
Phentermine accepts cod
Procainamide
Paramethadione
Calcitriol
Prescription order viagra online
Cheapest xanax
Vinblastine
Phentermine $89
Tessalon
Phentermine perscription
Order phentermine by cod
Triflupromazine
Xanax without a perscription
Indocin
Shipping phentermine to florida
Buy generic viagra
Isradipine
Cialis viagra levivia
Cheapest phentermine online no prescription
Viagra lawsuits texas
Isocarboxazid
Blindness viagra
Herbal phentermine does it work
Amoxicillin
Avelox
Phentermine fastin
Linezolid
Cialis testimonials
Delavirdine
Keppra
Ansaid
Phentermine review
Aspirin
Tolmetin
Phentermine 37 5mg shipped to kentucky
Pilljar phentermine
Diltiazem
Dienestrol
Discount soma
Atropine
Fastin
Viagra lowest prices
Is phentermine discontinued
Nolvadex
Phentermine np
How does xanax work
Singulair
Cialis for woman
Side effect of viagra
Lotrel
Women using viagra
Phentermine 30
Tramadol apap
Phentermine lose weight loss diet pills
Weight loss phentermine
Phenytoin interaction with xanax
Us pharmacy phentermine
Snorting xanax
Miglitol
Diamox
Amide pharmaceutical phentermine
Phentermine 15mg
Adipex loss phentermine weight
Soma addiction
Buy phentermine saturday delivery ohio
Tramadol long term use
Levivia viagra compared
Corticotropin
Phentermine cheap free shipping
Phentermine and diet pill
Buy phentermine by cod
Phentermine discount
Hydrocodone
Buy phentermine online cash on delivery
Get viagra drug online
Buy meridia online
Diazepam
Ticarcillin
Pharmacy phentermine sister
Primidone

TextMate : Environment Variables

April 7th, 2008

TM_LINE_NUMBER
TM_CURRENT_LINE
__LAUNCHD_FD
TM_SELECTED_TEXT
TM_ORGANIZATION_NAME
TM_COMMENT_END
LOGNAME
USER
TM_SUPPORT_PATH
PATH
HOME
TM_INPUT_START_COLUMN
DISPLAY
SHELL
RelaunchedApplicationBundleID
CrashReporterRelaunched
TM_COMMENT_DISABLE_INDENT
TM_SCOPE
TM_BUNDLE_SUPPORT
TM_BUNDLE_PATH
TM_LINE_INDEX
TM_MODE
SSH_AUTH_SOCK
TM_FULLNAME
TM_COLUMNS
Apple_PubSub_Socket_Render
TM_COMMENT_START_3
TM_COMMENT_START_2
BASH_ENV
TMPDIR
TM_LINK_FORMAT
TM_FLASH_HELP
TM_COMMENT_START
TM_INPUT_START_LINE
__CF_USER_TEXT_ENCODING
SHLVL
TM_INPUT_START_LINE_INDEX
DIALOG
TM_SOFT_TABS
TM_TAB_SIZE
TM_COLUMN_NUMBER
COMMAND_MODE

Little Frame Math App for some Flash help

October 30th, 2007

This is just a little something I wipped up in about an hour.

When it comes time to develop an animators/designers flash timelines typically there are elements that will be driven by code, or loaded in at runtime.  Anyway, the timeline representation will be gone in the final version, translated to code.   In order to aide in this translation I would always open my calculator and do a fps calculation and the multiply by some number of frames.  Not super tedious or difficult, but if I was on a train of thought, it would bug me. So I wrote this little guy to help.

It’s pretty straightforward. Choose your time units (seconds or milliseconds). Next tell it your frame rate and it will tell you how many frames per millisecond flash will try to execute.  Next you can either tell it how many frames you want, and it will tell you how many milliseconds, or you tell it how much time you want and it will tell you how many frames.

All time input/output will be in the units you select first.

screenshot

Download it here: flashframes.zip.

Lemme know if it helps.

Nike+ iTunes / Objective-C/Cocoa

June 6th, 2007

So I got the Nike+ gear this week, and went on a run.

Now I am curious if I can access the data from the run on the iPod via Cocoa, pretty sure I can, here is what I know so far:

/Volumes/<Volume Name>/iPod_Control/Device/Trainer/Workouts/Empeds/4H7142CXVSX

4H7142CXVSX / is part Serial Number of the Nike+ appliance: in this case mine starts with 4H714
Don’t know what the 2CXVSX part is yet.

Anyway, in that folder are the following:

best
latest/
settings.plist
lastWorkout.xml
preferences.xml
synched/

lastWorkout.xml stores the nitty gritty of your last workout, preferences.xml stores the totals of all of your workouts.

synched/ stores the details of the date/time when you last synched your workouts like this:
2007-06-06 20;49;49.xml

So this should be pretty easy to pull this data out for other purposes:http://www.nutrispot.com

Project Folder Creation with Cocoa

May 16th, 2007

So I have had the chance to dive into Cocoa/Objective-C a bit more lately, and as a simple project to build I created this Project Folder /Setup Application. It is very useful to me when I need to make a new project, and though setting up the folder structure may only take 2 minutes, with the use of Quicksilver (command + <space> ) and the typing of “new” I launch this app, name my project, set the folder I want, hit create and I am done. Some simple folder creation automation.

NewProject Screen Shot

Download it Here (ZIP - 56K)

Download the Source Here (ZIP - 1.9Meg)

Cairngorm in Flash 9 Alpha

April 3rd, 2007

Currently, the Flash 9 Alpha does not support adding SWC’s. Which is a shame since the Cairngorm microarchitecture for Flex 2 is so nice. Since both Flash 9 and Flex 2 are Actionscript 3 based, one would think that it was possible to use Cairingorm in the flash 9 alpha. It turns out you can… You can’t use the SWC, but you can grab the com.adobe.cairngorm.* folder from the zip you download and use that. The one issue I have found is that you need to be sure to comment some lines out of: com.adobe.cairngorm.CairngormError

Read the rest of this entry »

Debugging After Effects Plugins from XCode

March 30th, 2007

I stumbled across this link today for a way to debug plugins from Carbon based applications:

http://www.unsanity.org/archives/000391.php 

Found the above link through here:

http://blogs.adobe.com/ae_api/2006/03/more_xcode_debugging_details.html 

NSTableView with XML

March 29th, 2007

This project shows how to populate a NSTableView with data from an XML file. It uses NSXMLParser to parse the XML file.  This builds on the previous post Populating a NSTableView.

Download NSTableView with XML

Nutrispot.com

March 28th, 2007

Nutrispot.com is a Nutrition, Weight, Exercise, Blood Pressue, Blood Glucose tracker that I and 3 other friends of mine built.  It’s a  Flash/Flash Remoting, Ajax, MySQL, PHP driven Web Application.

Anyway it’s 100% free, so if you know anyone who would like to be healthier, but not pay for a subscription to other nutrition web related services, point them to http://www.nutrispot.com.

We all put a lot of work in on it, and continue to try and improve it when we have the time.  If you would like to help out, or have any suggestions, let me know.