OK,
In XCode 4, I have created 3 small programs: a calculator, a 'scratch Pad '(empty note-type window), and' spread sheet '(just like a spread sheet to keep the values obtained with the calculator)
Now what I'm trying to do My calculator will press, either execute a scratch pad or spread sheet and give the user the option to choose one
I have put both 'bundles' in the 'Applications' folder, they are easy to meet.
I was thinking that I need an NSButton subclass or if there is an easy way to do this.
I was thinking that I just open a file browser on NSButton / users / me / applications and then when the user (I :-)) chooses an app, Will store in the button which will implement the button when I call it key-equivalent.
But then I do not know how to give the buttons two different actions, one 'click' and one 'press'
If I want to sub-section the button, then Where should I look? And if there is any easy way, then where will it be?
It seems that simple solutions will have two buttons, one for each program.
If you are setting to use only one button, then the action of the button is to display a sheet or dialog box to work directly that allows the user to decide which application Launch
Comments
Post a Comment