How to create an 'Apple sound popup' in Xcode?

Hello,
When you set your volume harder (on a mac), there displays a nice, litte, a bit transparant, pop-up.
Is there a way to create such a pop-up?
I try to do it with applescript (inside xcode).
Xcode itself has also a pop-up like that, if you try to run your app, it display a pop-up
"Built succeeded", (or a hated pop-up "Built failed").
Kind regards,
Isaiah
P.S. I'm a noob in Xcode, so is there a way I just add a button, and connect it (with control-click, and drag) to for example "File owner", and then click "Pop-up effect"?

The ones you are talking about most likely use a custom view over a transparent background, with some custom objects and animations thrown in there for good measure.  Since you are a noob and all , there is a little bit easier way to make a simple dialog that avoids having to create the rounded corner background and code the animations and all.
In your AppDelegate or controller script, add an outlet for the alert window:
    property alertWindow : missing value
Add an action handler for the button:
    on showAlert_(sender)
        -- add additional setups or animations as desired
        alertWindow's orderFront_(me)
        performSelector_withObject_afterDelay_("hideAlert", me, 5) -- close after delay
    end showAlert_
And add another handler to hide the window:
    on hideAlert()
        -- add additional setups or animations as desired
        alertWindow's orderOut_(me)
    end hideAlert
In the Interface Editor, create another window for your dialog (I use a regular window, since the panels are a bit too dark) and connect the window (not the view) to your alert outlet using the Connections Inspector or equivalent shortcut.  Uncheck the "Visible at Launch" option, and make the window animation "Inspector Panel Style" to slow down the (dis)appear time a bit.
Add labels for your alert text (make the text white) and whatever other items and positioning you want.  Add/connect whichever button you are wanting to use in your main application window to your action handler, and you are just about ready to go.
You will need to do some additional setup for the alert window to make it gray and partly transparent, so somewhere such as in the AppDelegate's applicationWillFinishLaunching_ handler add the following:
    alertWindow's setOpaque_(false)
    alertWindow's setBackgroundColor_(current application's NSColor's colorWithCalibratedWhite_alpha_(0.0, 0.5))
In that last statement, the first number sets the grayscale, and the second is the opacity - tweak as desired.
Good Luck!

Similar Messages

  • How to create an apple id for your child

    how to create an apple id for your child

    You can create an id without accredit card that might be what you want.  Ten use that ID for your child's iMessage and iCloud and use your ID for iTunes and App Store on both phones. That way you can control what is purchased.  I would set up restrictions on the kid's phone with a pun that you only know and durn off in app purchases

  • How to create Alternate Apple Id?

    how to create Alternate Apple?I think usually have 3 email accounts ( Apple ID,Alternate ID,Alternate Address) but my I account only 2 email account added ( Apple ID, Alternate Address) How to create Alternate Apple ID?

    To use this forum, you already have an Apple ID.

  • HT5622 How to create free apple id

    How to create free apple id

    If you're logged in here...you are...you already have an Apple ID. I suspect you're asking how to use/create an ID & not have a credit card associated with the account, correct? If so, you will need to either create a new ID by following the directions here:
    http://support.apple.com/kb/ht2534
    Or, redeem an iTunes gift card if you want to use your existing ID.

  • How to create an apple id without using credit card

    how to create an apple id without using credit card.. i have recently purchased apple iphone 3gs bt unable to get apps because of giving credit card info which i dnt hav.. so plz tel me some way to process..

    To get the none option, sign out of anything apple you're signed into. Go to the app store and try to download a free app, any free app. Instead of signing in, take the option to to make a new apple ID. Then go through the steps to make the ID and you'll see the 'none' option.

  • I don't have credit card then how to create an apple id

    i don't have credit card then how to create an apple id ?

    See this for help...
    Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…

  • How to create a apple ID without credit card needed i want a none credit card.. Please help me... Thank you hope u replied as soon as possible.. Thank you again..

    How to create a apple ID without credit card needed i want a none credit card.. Please help me... Thank you hope u replied as soon as possible.. Thank you again..

    Hello, chard2say22. 
    Thank you for visiting Apple Support Communities.
    To create an Apple ID without a credit or debit card, there is a specific series of steps that have to be processed in order to allow the payment to be set as none on creation of the account.
    Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/HT2534
    If the specific steps have not been processed, a credit or debit card will be required to complete the setup of the account.
    However, it can be removed and payment method changed to none as long as there is not an outstanding balance.  At this point an iTunes gift card can be used as form of payment.
    iTunes Store: Changing account information
    http://support.apple.com/kb/ht1918
    Cheers,
    Jason H.

  • How to create an apple id without entering my credit card number

    How to create an apple id without entering my credit card number ??? In my pc and my iphone it doesnt show the none option ???

    Here is how
    http://support.apple.com/kb/HT2534

  • How to create an apple id without credit card details

    how to create an apple id without credit card details

    See Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…

  • How can create free apple id

    how can create free apple id

    did this search for you
    https://www.google.dk/search?client=opera&q=iphone+stuck+in+headphone+mode&sourc eid=opera&ie=utf-8&oe=utf-8&channel=suggest#hl=da&gs_rn=14&gs_ri=psy-ab&tok=8byg TCPc3ltPmaPPMtoO0w&pq=iphone%20stuck%20in%20headphone%20mode&cp=10&gs_id=14&xhr= t&q=create+apple+id&es_nrs=true&pf=p&client=opera&hs=mdj&channel=suggest&sclient =psy-ab&oq=create+app&gs_l=&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.46751780,d.bGE&f p=a420e64a21601afc&biw=1825&bih=750
    got this result
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId

  • HT5114 how to create free apple id

    How to create free apple id with new iphone 3gs

    Hello,
    Creating an Apple ID is free.
    You will find all the infos on this page :
    Apple ID FAQ : http://support.apple.com/kb/HE37

  • How to create another apple ID account if I have a maximum number of free accounts?

    How to create another apple ID account if I have a maximum number of free accounts?

    See this previous discussion.
    icloud: The maximum number of free...: Apple Support Communities

  • How to create an apple id without an credit card

    please till eme how to creat an appleid without credit card

    You need to follow the instructions on this page when creating the account : http://support.apple.com/kb/HT2534
    e.g. if currently logged into an account then log out of it, find a free app in the store and click on its free 'price' :
    Click on 'create Apple id' on the popup :
    Agree to the terms, fill in your details, and you should get a 'none' option on the payments screen

  • How to create an Apple ID when it says my email is already used

    HHow to create an Apple ID when it says my email is already in use?

    Hey nancyfromsanford,
    Thanks for using the Apple Support Communities. It sounds like you are having issues creating an Apple ID. Is there a reason you are attempting to create a new ID? Since you are able to post on these forums, you already have an Apple ID account. Your email address may be associated with this account - which would cause this error message you are receiving.
    If you need help finding your Apple ID accounts, or any duplicate accounts, check out this helpful tool:
    How to find your Apple ID - Apple Support
    http://support.apple.com/en-us/HT201354
    Thanks,
    Matt M.

  • How to create an Apple ID for 10 year old? and retrieve old contacts?

    Hi, my daughter and I have just got our new iPhones but I can´t create and Apple ID för her so she can´t use the ICloud service. So I tried using the one I created for myself resulting in that all my contacts apeared in her phone. What should we do?
    Apple how about letting parents confirm the Apple ID for their kid but it should be created with the kids name and birthday how difficult can it be? am I the first mum who bought and Iphone for my kid?
    And by the way how do we get access to all the old contacts stored on the SIM card from our preIPhone time? I thought that everything just work with Apple but I am beginning to think that I should have choosen and Android... I mean changing brand of phone doesn´t exactly mean that you want to cut contact with all your old friends...are there a solution that I havn´t figured out?
    Maybe someone could make an App that emulates a SonyEricsson or Nokia so that you can retrive your old data?

    You can delete the iCloud account from her phone by going to Settings>iCloud, scroll to the bottom and choose Delete Account.  I believe you will get a prompt asking if you want to remove or keep the data on the phone; if you don't want your contacts on her phone choose delete.  As far as the contact on your old SIM card, if it is the same size as the iPhone SIM card you can put it in the iPhone and import the contacts (see http://support.apple.com/kb/HT4994).  If the SIM card won't fit, then you would need to either export the contacts to your computer using appropriate software, upload your contacts to a cloud service so you can download them to your computer, or in some cases take it and your iPhone to your retailer and ask them if they can do the transfer for you.  (It's also possible to cut a SIM card down to fit but it can be tricky to get it right.  There are articles on this if you search with Google.)  This video might help: http://www.youtube.com/watch?v=ypZpYNpfa9E.

Maybe you are looking for

  • Unable to backup from my iphone 5

    Good Day, I have 2 problems> 1 With my iphone 5 that for some reason will not back up with icloud. Im pluged in, with wifi, and i have the 55 Gb icloud backup. 2 I have a mac Book Pro the 2.26 Ghz core duo (year 2009), with mountain lion 10.8.2 and f

  • RuntimeException in Message-Mapping transformatio error in txt to txt  fcc

    hi in my design part i executed my mapping program , it executed successfully my src is <?xml version="1.0" encoding="UTF-8"?> <ns0:mt_sarat_txttxt_sender xmlns:ns0="http://Sarat">    <Company>       <Header>          <Key1>H</Key1>          <RecordI

  • Java Viewer not Working in Firefox

    I'm running CR 11 R2 SP5 and the Java viewer works in Chrome and Safari but not in Firefox. I'm running Firefox v3.5.2. No error messages just a blank Grey screen. Any ideas? Thanks, Rich

  • Selection screen's  variant (global level) - what is the tcode for this

    Hi all, I need to know what is the transaction code that maintains ABAP program's selection screen variants at global level. More information : the transaction code that maintain program's selection screen variants at global level. Thanks. William Wi

  • 4400mAh in 1.67ghz Hi-res

    wasn't I supposed to get a 5600 or 6500 mAh i forget how big they are. But i am pretty sure it is not supposed to be 4400. Can I take it to an apple store with my reciept?