OS X Development: Doing 2 things with a button

I'm not sure if this is the right section, but
In XCode 5 I'm trying to make it soo when you click on a button it will open a new window and close the window the button is on, so I can do that, thing is the button forces you to only do one thing, so I have to either choose to open a new window and bring it to the front or close the window and somehow open the new window I do not know how.
Can anyone help me with this?

That sounds like you are talking about connecting the button to one of the predefined actions.  Just connect the button to your own action method and include whatever code statements you want.

Similar Messages

  • Album art doing weird things with iTunes 7.3.1.3

    About a week after I got this version, all my music got deleted somehow. I've added it all back, but album art is screwy. Sometimes it only shows a black square where the art should be. Other times it won't change the art to what I want it to be. These things happen regardless of whether I change many songs at once or one at a time. Is there a patch or something? I don't want to restore the iPod again...it takes way too long to rename all my songs and put them in specific playlists!!

    Hi blob2,
    Although it may not be the solution to your problem, there's been a new version of iTunes that was released a few days ago, which may provide some sort of help with this issue for you.
    The latest version is 7.3.2.6, and can be downloaded from Apple's website, here:
    Download iTunes - 7.3.2.6
    By the way, does this happen when you're trying to view the album art on your iPod, or does this just happen with your iTunes library?
    -Kylene

  • Doing weird things with dataTipFormatFunction

    OK, so here's my little problem:
    I need to have a slider that spans a significant range of
    values. The range (if we're talking units of time) goes from one
    year all the way down to one second, with the difference between,
    say, five and ten seconds being about as significant as the
    difference between five and ten months.
    "Aha!" I cried to myself. "That just means that I need to use
    some of that fancy-dancy mathematics stuff that I learned in that
    big brick building I went to once!"
    And indeed, that's what I did: I put together a new component
    by just inheriting from VSlider and tacking on some methods to
    process slider.value as the input to a logarithmic scale. It's
    pretty cool, too. All I do is bind to my slider.time property and
    boom! I've got a slider that goes from a year to a second, with the
    user being able to make fine-grained adjustments easily.
    The only snafu popped up (quite literally) with the data tip,
    which still showed slider.value. Kinda broke the illusion. No
    problem: I just replaced dataTipFormatFunction with a function that
    discarded the old slider.value-based string and returned a new one
    based on my slider.time property. It even formatted it nicely,
    switching units from seconds to minutes to hours to days to months.
    But there's one last niggling problem. If I'm dragging the
    slider along with the data tip showing and a neighboring text field
    bound to slider.time, I get two different outputs. Dragging up the
    scale, for example, my bound text field will say six seconds, while
    the data tip still shows five. Releasing the thumb and clicking on
    it again at that point will show the data tip at six seconds,
    leading me to believe the following:
    1) The string with which dataTipFormatFunction() is called is
    based on the change event, *not* the slider.value, and
    2) dataTipFormatFunction() is getting called *before* the
    slider.value is assigned the new value.
    So first, is that a fair conclusion? Since my custom data tip
    function discards the old string and builds the new one based on a
    function that accesses slider.value, it seems like a reasonable
    guess.
    Second, anybody have any suggestions? I see two alternatives
    right now: disable data tips, or extract the number from the
    original string and pass it into a method that will re-scale it.
    The second option is just kinda kludgy, so I'll probably just kill
    the data tips, but I do like having the pop-up feedback available
    while the user is making fine-grained adjustments.
    Any other approaches? Am I missing something? Should I have
    gone into podiatry like my mother wanted?

    Hi blob2,
    Although it may not be the solution to your problem, there's been a new version of iTunes that was released a few days ago, which may provide some sort of help with this issue for you.
    The latest version is 7.3.2.6, and can be downloaded from Apple's website, here:
    Download iTunes - 7.3.2.6
    By the way, does this happen when you're trying to view the album art on your iPod, or does this just happen with your iTunes library?
    -Kylene

  • MY NANO IS DOING WIERD THINGS WITH THE ARTWORK!!

    this is what happened :
    i went to go play a song so i clicked on it. the artwork was not the regular album artwork. it was weird pink and yellew pixels. i went back to main menu .
    and ALL of my cover flow was gone . so i clicked on songs again and it froze for about a minute then returned to normal. but i still can't get the regular album artwork. it keeps doing this ( for teh past week)should i restore my ipod or get a new one ?

    i would restore your ipod to refresh everything that will be synced... and make sure you have all up to date patches for your ipod and itunes....

  • What do I do when an app developer does not deal with a complaint?

    Hi, am using a 16gb iPad, running IOS 8.1.3. I use an app most days, with in app purchases. They update regularly, but most of the times they update it causes problems, such as booting you out (up to 30 times a day). This has on many occasions caused me to lose money. When I contact them,they apologise, but have never refunded the losses. I would like to raise that complaint with Apple, but am not sure where to go to do this. Any help would be appreciated. Thanks, Jimbo

    iTunes Support -
    http://www.apple.com/support/itunes/

  • When im listening to music and doing other things with iPad at the same time, the music stops and starts at random?

    Can't understand why my music cuts in and out?

    Have you tried restarting the iPad?  (Not just sleep, but hold the power button down until you get the slide to power off.)

  • Weird thing with duplicating buttons

    hi ive made a simple button that sends you to the first frame. and its working good but than when i duplicate it only 1 button works i got 33 buttons
    and only one of them is working.... any one knows what to do? thanks for the help

    I am not familiar with whatever using drag + ctrl is, but if you have duplicated the same button by copying and pasting it on the stage, if you didn't rename each button and assign an event listener for each then only one of them will work.

  • JDialog with no buttons ?

    short question, can you create a JDialog to inform a user what is happening (to stop them tampering with other things) with no button (so basically i can close it when the task is complete ?

    Well it is possible to make a Modal JDialog with no buttons, but when u make it modal, it will halt the program. I had this problem and I just started a thread to do some processing while the dialog is displayed, here is a sample of what i mean
    public class ButtonlessDialog extends JFrame {
         JButton showDialogButton;
         JDialog buttonless;
         JLabel stuff;
         public ButtonlessDialog() {
              super("No button dialog");
              setSize(400, 400);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              showDialogButton = new JButton("Show Dialog");
              showDialogButton.addActionListener(
                   new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             showTheDialog();
              getContentPane().add(showDialogButton);
              setVisible(true);
              validate();
         public void showTheDialog() {
              buttonless = new JDialog(this, "WaitForStuff", true);
              stuff = new JLabel("MESSAGE");
              buttonless.getContentPane().add(stuff);
              buttonless.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
              buttonless.setSize(200, 200);
              Thread stuffToDo = new Thread() {
                   public void run() {
                        try {
                             stuff.setText("about to do stuff");
                             this.sleep(1500);
                             stuff.setText("Doing Stuff");
                             this.sleep(1500);
                             stuff.setText("Almost done");
                             this.sleep(1500);
                             stuff.setText("Done");
                             this.sleep(1500);
                             buttonless.dispose();
                        catch(Exception e)
                     //Make sure to start the thread before setting the modal dialog to visible
              stuffToDo.start();
              buttonless.setVisible(true);
         public static void main(String args[]) {
              ButtonlessDialog bd = new ButtonlessDialog();
    }Hope that helps

  • PDF Documents with Functional Buttons - Works for IE and FireFox but not for Chrome and Safari

    To all,
    Good morning.  Our institution developed a PDF document with functional buttons for printing and e-mailing.  When the document is viewed via Internet Explorer and Firefox, the functional buttons work as expected.  However if the document is viewed via Chrome and Safari, the functional buttons do not work.  The workaround for those who are using Chrome and Safari, the PDF document needs to be saved to their local drive before the functional buttons work.
    Has anyone experienced this issue before?  If yes, what was your solution other than the workaround.
    Thanks.
    Babylon5

    Here's how to configure your browser to run Adobe Reader: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

  • My Mac is doing strange things: delaying between users, mouse flickering and bouncing, gets stuck with rainbow wheel flickering. I ran the appel hardware test and it detected an error: 4MOT/4/40000003:HDD-1233 Does anybody know what that means? HELP!

    My imac is doing strange things:
    -delaying between users: when closing session it goes to blue, then takes a while to appear users signin box, and then wont recognize mouse command to enter until a couple of minutes later... then everything seems alright until....
    -it gets stuck between things, the rainbow wheel appears and its just delays there forever....
    -and every now and then the mouse starts flickering and bouncing wildly onscreen.
    I ran the appel hardware test and it detected an error:
    4MOT/4/40000003:HDD-1233
    Does anybody know what that means? HELP!

    WZZZ answered about where to get iStat. And do check the SMART status. If it is an overheating problem due to a fan or logic board problem, your hard drive is possibly cooking itself to death. If so it isn't a faulty hard drive even though the hard drive might fail. So assuming it's a temperature problem, even if you are able to repair things on the disk with software, that is working on symptoms, not causes. I could be wrong however.
    RE: AppleCare: Your iMac came with one year of AppleCare (Apple's warranty program), but within the first year you can buy 2 more years. You have to extend by the one year anniversary of purchase of the computer. Your 10,1 is too old to still be in the first year, and since you asked what it was, I'm sure you don't have it. Bottom line meaning is that whatever this problem turns out to be, you'll have to pay for it. Unless there is something like this. It is for 2011 iMacs with certain Seagate drives. You can put in your serial number for fun, but it looks like yours is too old. Lastly, some people have had Apple help them anyway if it is just out of warranty, but many have not. Your machine is one of these. Type in 10,1 in the search box. Is there an Apple Store near you? Just b/c it's out of warranty doesn't mean you shouldn't have it looked at by Apple. But no one here can say at all what Apple will or will not do.
    Hope you get it taken care of!

  • My Macbook Air is stopping a few seconds into videos (e.g. Youtube and BBC iPlayer) and is doing the same thing with PDF downloads not

    My Macbook Air is stopping a few seconds into videos (e.g. Youtube and BBC iPlayer) and is doing the same thing with PDF downloads which are only partially downloading then stopping. I changed some security settings yesterday but don't think I touched anything else. Can anyone help?

    My Macbook Air is stopping a few seconds into videos (e.g. Youtube and BBC iPlayer) and is doing the same thing with PDF downloads which are only partially downloading then stopping. I changed some security settings yesterday but don't think I touched anything else. Can anyone help?

  • Does anyone have an answer yet to this time out thing with the Itunes 9????

    I see so many threads but can't follow through each one. Does anyone have an answer to fix this?
    dawniedoodle

    What time out thing with iTunes 9? You'll get better answers if you give as much detail as possible when asking a question, including any error messages you've received and any trouble shooting steps you've already taken. From your question, it's not at all clear what your problem is.
    Best of luck.

  • HT1655 I have a 3rd generation shuffle.  It has stopped working with the earphones it came w/pinch buttons on the cord.  It will no longer advance to next song/change the volume.  Even with a new set of Apple earbuds, it does same thing.  How do i factory

    I have a 3rd generation shuffle.  It has stopped working with the earphones it came w/pinch buttons on the cord.  It will no longer advance to next song/change the volume.  Even with a new set of Apple earbuds, it does same thing.  How do i factory reset or fix the problem?

    Hello there, RufusChloe.
    The following iPod Troubleshooting Assistant should help with troubleshooting your issue:
    Apple - Support - iPod - iPod shuffle (3rd generation) Troubleshooting
    http://www.apple.com/support/ipod/five_rs/shuffle3gen/
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Developing a User Interface with ADF Faces - Tutorial - Questions

    Hello everybody,
    I am a forms developer and I am totally new to ADF.
    I started from the tutorials : Developing Business Services with ADF BC and Developing a User Interface with ADF Faces...
    Everything was easy and very clear, as far as the material covered in the tutorial is concerened.
    But when I tried to modify a little bit the application, to perform a different task... disaster!!! :-)
    One of the "simple" things that I tried to do -for example- is :
    In the login.jspx, where we have created an ADF Parameter form (that accepts as a parameter the customer ID) and
    retrieves in the next page the Orders of the specific customer.... to Display a message, such as "+Customer Does Not Exist+"
    if the user types in the parameter form an not existent customer ID...
    I understand that I should use a validator.... But I cannot find the list validator (from query) in the bind variables not in the ADF Parameter Form Fields....
    Does anyone know?
    Regards,
    Maira Kotsovoulou

    Dear Grant,
    CustomerID is in the UI Project, and appears as a part of an ADF Parameter Form... and I can not find key exists in the UI Validators....
    CustomerID in the .entities is a bind variable in a query. select ... from customers where customer_id = :p_customer_id. Again KEYEXISTS validator is not available in the bind variables sections... Only in the attributes!!!
    I understand that the "normal" behavior in a query with bind variables where there is no match is to display nothing as it does!!!
    But I was just wondering, if I could even trap that before I display the empty form...? Or could I display a text in my ADF form, that says no rows... (as I can do in an ADF Table???)

  • Goods reciept quantity does not match with consumption items quantity

    I have a qty of 10 peices,when doing the conf with co11n of qty 5 the system takes less qty of scrap  which is byproduct but i want scrap qty 2 wheather the system takes scrap of qty 1 .The error messege is (zmsg106)
    where the things going wrong.
    narendra

    Hy Narendra,
    It depends on your BOM.I think you have assgin Scrap qty in BOM as -2 for 10 Nos of Header Material.If you want to change that Scrap qty to 2 Nos for 5 Nos of Header Material then change your BOM and make Scrap qty as -4 for 10 Nos of Header Material.
    And that msg is your own developed not system std.So pls confirm its reason to your abaper.
    Regards,
    Dhaval

Maybe you are looking for

  • Can't get Struts validator to work with ADF 10.1.3.36.73 in Jdev 10.1.3.0.4

    I am attempting to use the "How to Use the Struts Validator Plug-in with JDeveloper 10g" written by Duncan in a JDeveloper 10.1.3.0.4 application with standard model/ViewController projects. I am using JSP/Struts/ADF technologies. I have performed th

  • Need Dynamic Table instead of Standard Table in FM INFO_SICHERN_S001

    Hi Guys,               I have copied standard FM INFO_SICHERN_S001 into Zdefined FM. My requirement is instead of Updating or  Modifying or  Deleting  standard table I need to do all these things for entered table. How to do this. Thanks in Advance.

  • Images not showing up...

    Hi, I think i've missed something really simple here, but i'm too tired to see it. AND IT HAS TO BE DONE! can anyone take a look at my code and tell me what i'm doing wrong. The buttons are showing up and the threads work but no images. why? import j

  • Profile reset request

    I have been trying to get my SNR margin reset for about 3 weeks now.  First of all I was told that it had been done, but would take up to three days to happen...... it didn't. Then I was told that there was a technical problem, and it would take 7-8

  • JPCAP: Network Device Information Display

    hi i am using JPCAP to display network device information.. but, problem i am getting with following code is that it works only on first JComboBox value change and then, Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException occurs.. i