You are here: iTopchiyev »

Tag : Mac

Mac OS X Dock Restarter

I decided to automate the dock restart process. I wrote a little AppleScript that do this. And bundled it in an Application Bundle.

Restart Dock

It is FREE. You can download it HERE

Keep Reading…

A new application FingersTune is coming soon.

FingersTune consists of three elements:

  1. Application for the iPhone
  2. Application for Mac Computers
  3. Web Portal

Application for iPhone

FingersTune iPhone

FingersTune iPhone

Features:

  1. A lot of different musical instruments. Classics: Piano, Ocarina, Accordion, etc. + Funny: Scream, Bottles, Robot, etc.
  2. Visual notes editor using touches to edit notes. Insert new note, delete existing note, relocate selected note, etc.
  3. Preview composed melody.
  4. Fingers Player. It’s a view where you play a melody using four buttons tapping them in different combinations.
  5. Covers three octaves: From E to B in Octave #1, From C to B in Octave #2 and From C to F in Octave #3
  6. Training mode: You can turn on the Training Mode, and a new button will appear on the Fingers Player view. When you tap on this button FingersTune will train you how to play the melody you’ve selected by blinking the buttons you need to tap at current time.
  7. Publish/Share on the FingersTune Web Server.
  8. Share with Macs and iPhones in the Local Network.
  9. Gaming Mode: You play and each level you pass, you new melodies.

Application for Mac

FingersTune iPhone

FingersTune Mac

Features:

  1. A lot of different musical instruments. Classics: Piano, Ocarina, Accordion, etc. + Funny: Scream, Bottles, Robot, etc.
  2. Visual notes editor. Insert new note, delete existing note, relocate selected note, etc.
  3. Preview composed melody.
  4. Covers three octaves: From E to B in Octave #1, From C to B in Octave #2 and From C to F in Octave #3
  5. Publish/Share melodies on the FingersTune Web Server.
  6. Share melodies with Macs and iPhones in the Local Network.

WebPortal

FingersTune Web

FingersTune Web

Features:

  1. A lot of different musical instruments. Classics: Piano, Ocarina, Accordion, etc. + Funny: Scream, Bottles, Robot, etc.
  2. Visual notes editor. Insert new note, delete existing note, relocate selected note, etc.
  3. Preview composed melody.
  4. Covers three octaves: From E to B in Octave #1, From C to B in Octave #2 and From C to F in Octave #3
  5. Download melodies to Macs and iPhones.
  6. Upload melodies from Macs and iPhones

Hello Mac Cocoa

Here I’m gonna introduce you the paradigm of programming for Mac using Cocoa, Objective C.

The aim is to make a calculator app. By the way, the project soon ported to iPhone. And that requred just fiew changes. I mean development for both platforms is mostly identical.

Well, I have a

standard program scheme that I use each time I need to test some new for me platform, that’s “Calculator”.

It looks like this:

  1. We have 1 class, let’s call it MYCalculator.
  2. We have 2 classwide available strings: currentVal and previousVal. Theese strings are for storing current and previous values and manipulate them during operations. Both this variables are initialized with “0″ string.
  3. We have an Int32 to store the operator code that we choose by pressing some operator button. Then we’ll use it on Equals button press event. This variable is initiolized with 0 value.

Also we have a Window for storing user interface. And in it:

  1. We have digit buttons 0 – 9.
  2. We have operator buttons +,-,x,/.
  3. We have equals button.
  4. We have clear button.
  5. We have a single read only text box or label or something like that.

In code we have to:

  1. We have a single event processor for digit buttons. It have to get text of sender button and append it to the currentVal string, If currentVal equals “0″ then we simply replace the string by sender text. Then set the text boxs value to currentVals value
  2. And the last we have a single event processor for operation buttons. First we have to check if the last character of previousVal equals to “.” then we have to remove that char. And if operator variable not equals to 5 then we copy the value of currentVal to previousVal. If operator is between 1 ant 4 then we first execute “=” event processor.   It have to get text of sender button and see if it equals to “+” then set the operator variable to 1, if to “-” then 2, if to “x” then to 3, if to “/” then to 4. Then we set the text box value to currentVal value.
  3. We have an event processor for “=” button. First we look at value of operator variable, and if it’s between 1 and 4 including, then according to that value we execute selected operation (1 is +, 2 is -, 3 is x,  4 is /) using currentVal and previousVal and save it to previousVal. Then we set currentVal to “0″ and operator to 5.
  4. We have an event processor for clear button. Here we set all variables (currentVal, previousVal operator) to “0″. Then we set the text box value to currentVal value.

The souce code can be downloaded here

DOWNLOAD NOW
(Downloaded 190 times; Filesize - 2.43 MB)