Symlinks don't work for app bundles?

Anyone seen the following?
I'm pretty new to OS X programming. I'm using CMake to help me build cross-platform code on OS X 10.5 (in addition to Linux). I'm using CMake's "MACOSX_BUNDLE" option for the executables. My GUI is created with the FLTK library.
When I build application "foo", I get the expected bundle file tree: "foo.app/Contents/MacOS/foo".
If I directly run ...../MacOS/foo on the command-line, the program works just fine.
However, if I create a symlink *pointing at* ...../MacOS/foo, and execute the symlink, the program doesn't work right. The window appears, but it's not made the front-most window on the desktop, and the menus don't respond. This reminds me of how programs acted before I found out I was supposed to build them as application bundles.
Does anyone know why symlinks aren't working for me?
Thanks,
Christian

conveycj wrote:
we'd need a really good reason to write OS X-specific GUI or IPC code.
Writing good software isn't reason enough?
So, you may be right that I'm asking something of OS X that it wasn't really designed to do. But given my cross-platform and small-code needs, I'm not sure if there's really a better solution.
OS X can do whatever you want. You are trying to build a Mac tools with CMake, which I'd never heard of until a couple of weeks ago and which apparently can't built a Mac application if it had to.
You are free to use whatever you want to build your application, but I strongly encourage you to bit the bullet and just try it on a Mac once. See how Xcode does it. Then, if you want to build it with some wacky tool, go right ahead. But you need to have a working example first. Even if you don't want to build your entire app in Xcode, at least do a simple "Hello World" app that can run with our without the GUI. Then hack up your CMake to build your app like Xcode built the HelloWorld app.
I have done what you are trying to do in Xcode. All you have to do is look for the "-psn" command-line argument that indicates you are running in the GUI. If you have "-psn", you are in the GUI and you don't get any other command-line arguments. If not, you were launched from the command line, so parse away.

Similar Messages

  • I can't update my apps even when I do App Store purchased select all...... It don't work for me

    I can't update my apps even when I do App Store>purchased> select all...... It don't work for me

    When you tap on All at the top. That shows all of you purchased apps. You still have to manually go through each letter (on the left side) and look through every page of apps in order to find the apps that need an update. It is a pain and its time consuming, but that's how you have to do it.
    Is that what you are doing and it's not working for you?

  • Dispite I downloaded app video calling for facebook from appStore, my safari on my MacBook don't work, instead app wants to change browser. If I do this (changing user-agent) what will happen with my safari???

    Dispite I downloaded app video calling for facebook from appStore, my safari on my MacBook don't work, instead app wants to change browser. If I do this (changing user-agent) what will happen with my safari??? I have new (updated 10.7.1) OSX, Lion !!!
    Kind regards!
    Petar

    Dispite I downloaded app video calling for facebook from appStore, my safari on my MacBook don't work, instead app wants to change browser. If I do this (changing user-agent) what will happen with my safari??? I have new (updated 10.7.1) OSX, Lion !!!
    Kind regards!
    Petar

  • Push notifications doesn't work for apps like (fb viber , whatsapp etc ) iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    Sorry, I've forgotten the actions done.
    I've restarted the iphone, and I've recovered a previous backup.
    Thanks.

  • HT4557 Does home sharing work for apps? The instructions make it sound as though home sharing really only allows you to stream content.

    Does home sharing work for apps? My young son received iPad mini for Christmas, and I don't want him to have to repurchase the games and other raps I'd already bought for him that are resident on my iPad.

    does Home Sharing allow you to copy any item begtween libraries, including CDs you have ripped yourself
    It certainly allows you to copy ripped CDs. Just did that myself last week.

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • I had to buy a new keyboard but F10, F11 & F12 don't work for the volume. What can I do to activate it?

    I had to buy a new keyboard but F10, F11 & F12 don't work for the volume. What can I do to activate it?

    Hello,
    I think Spark cured this for another person and the same problem...
    http://www.shadowlab.org/Software/spark.php

  • My touch id is not working for app purchasing loading up my ipod touch back up

    my touch id is not working for app purchasing after loading up my iPod touch back up to the iPhone 5S

    Yes, you will need to call Apple at this point for further assistance.
    Apple ID: Contacting Apple for help with Apple ID account security

  • Labview programers, for your safety don't work for holotpics in Switzerland

    Ni programmer, for your safety don't work for holotpics in Switzerland, the chairman is a bad guy:
    he swindles National instruments by buy matérial on the black market
    and he don't pay its employes and a lots of others bad things.

    Never heard of the company, but if they don't pay their employe(e)s, then there won't be anyone at all working there soon.
    Otherwise, NI, delete this stupid post please.
    Personal opinions of this sort are trash and deserve to be removed.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • I can't lock screen on Ipad mini. My lock screen button is working for shutdowning Ipad, but don't working for lock screen. Also I tried to lock screen from Assistive Touch and it's not working. When I click lock screen on assistive it nothing happens.

    I can't lock screen on Ipad mini. My lock screen button is working for shutdowning Ipad, but don't working for lock screen. Also I tried to lock screen from Assistive Touch and it's not working. When I click lock screen on assistive touch it nothing happens.

    Thank you for that update.
    I would next backup your device to iTunes with this article:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    And restore it first as a new device, and verify that it works properly, then restore from your backup with the same article below to ensure that it is still working.
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    If it does not work correctly when you set up the phone as a new device, I would next seek service for your iPad:
    http://www.apple.com/support/ipad/repair/other/
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • ITunes "Check for updates" don't work for two specific app

    I have iPhone 4S, and iTunes at Windows 7 PC. Clean install.
    I've bought an GPS navigation app, Turkey Navigation iGO Primo app, which was free at first release day. My problem is, when I click the button "Check for updates" at iTunes(PC), it don't show me any updates, but when I go to app's(iGO Primo) iTunes page, I see that new version released, and iTunes price button says "Update". So I can manually update the app, but iTunes can't automatically finds it. This symptom only occurs for two apps iGO Primo app and Google Search app.
    A friend of mine also bought the Primo app at same time as me, and she has no problem, iTunes can find updates automatically.
    I can delete the app from iTunes and download again, but no luck, no fix.
    Developer(NNG) and Apple technical support can't help me a bit.
    Maybe there is other apps at my library that has this problem, I don't check every app's page manually if an update released.
    Do you have any solutions?

    From the Store menu, select
              Check for Unfinished Downloads...

  • Mics don't work during regular OR speakerphone calls, but work for apps and everything else!?

    This is really perplexing to me, and the first time I have experienced something like this that I can't figure out.
    I have a iphone 4 that I recently bought used, is out of warranty, have no recourse with the seller of the phone, and I have run into an issue with the mics.
    Before I changed the screen, the guy I bought it from said he had an issue with both mics not working as well. Well, after changing the screen and getting it all back together, I "reset and erased all data", and everything seemed to work fine....then after a day or two, they stopped working again.
    Long story short, I have since tried fresh installs of ios7.0.3, "erasing and resetting" many times, and even put headphones in and out of jack, AND changed the audio jack/volume flex TWICE, but to no avail...no matter what, I get the same thing:
    Bottom mic:
    1. Voice Memo always works
    2. Voice Control does pick up my voice, but seems to hear the wrong commands
    3. Mic does NOT work during regular calls
    4. Mic DOES work for calls with Viber
    Top Mic:
    1. Facetime works every time
    2. Video Record works every time
    3 Mic does NOT work during regular speakerphone calls
    4. Mic DOES work during VIBER speakerphone calls, EVERY TIME.
    a couple while testing speakerphone and regular calls, I blew and sucked air in and out of the top mic while in a speakerphone call, and it would "break through" on the other end for a second or two, occasionally....so now I'm thinking maybe both mics are just messed up, and I should replace them?
    This is frustrating the !@#$ out of me, and I really hope someone can shed some light onto this deal.....Thanks in advance for any help with this one!

    This is really perplexing to me, and the first time I have experienced something like this that I can't figure out.
    I have a iphone 4 that I recently bought used, is out of warranty, have no recourse with the seller of the phone, and I have run into an issue with the mics.
    Before I changed the screen, the guy I bought it from said he had an issue with both mics not working as well. Well, after changing the screen and getting it all back together, I "reset and erased all data", and everything seemed to work fine....then after a day or two, they stopped working again.
    Long story short, I have since tried fresh installs of ios7.0.3, "erasing and resetting" many times, and even put headphones in and out of jack, AND changed the audio jack/volume flex TWICE, but to no avail...no matter what, I get the same thing:
    Bottom mic:
    1. Voice Memo always works
    2. Voice Control does pick up my voice, but seems to hear the wrong commands
    3. Mic does NOT work during regular calls
    4. Mic DOES work for calls with Viber
    Top Mic:
    1. Facetime works every time
    2. Video Record works every time
    3 Mic does NOT work during regular speakerphone calls
    4. Mic DOES work during VIBER speakerphone calls, EVERY TIME.
    a couple while testing speakerphone and regular calls, I blew and sucked air in and out of the top mic while in a speakerphone call, and it would "break through" on the other end for a second or two, occasionally....so now I'm thinking maybe both mics are just messed up, and I should replace them?
    This is frustrating the !@#$ out of me, and I really hope someone can shed some light onto this deal.....Thanks in advance for any help with this one!

  • :*(  Form buttons don't work for all testers

    I created a form in Acrobat 9.1 using Forms> Add or Edit Fields. The form contains action buttons for next page and previous page, to clear all fields, and (with the generous help of a fellow forum member) to print the form and save it to disk. I optimized the form with compatibility set to Acrobat 8.0 and later, then enabled it for Reader. I sent this form to several users for testing.
    Those using Acrobat have no problems with it.
    Those using Foxit Reader have no problems with the action buttons or the form fields (except that date fields are finicky; Foxit doesn't convert the dates to the correct format the way Reader or Acrobat do). But, the yellow background that I created as a watermark -- so I could make it visible but not print -- is printing. That's not anything that Acrobat can help, but it is a very good reason to not recommend using Foxit. It would create a dreadful shortage of yellow inkjet ink.
    Those using Reader 8.0 to 8.1.2 are having several problems. For them, the action buttons don't work... except the "clear all fields" one. The buttons don't do anything; there are no errors, no messages, no activity of any kind except to change color when clicked.
    The buttons that don't work are all set up as Mouse Up actions executing a menu item... for example, "Go to page 2" is just View>Go To>Next Page. The "Clear all fields" button is, on Mouse Up, "Reset a form" with all fields selected... so it's the only kind of button that works for Reader users, and it's the only button that doesn't execute a menu item.
    Why is there a difference in actions these users can run? If it's a security issue... what possible risk is there in going to the next page, using a button instead of a scroll bar or Page Down key??? I can find no common sense here, especially because Reader users are the only ones barred from these form actions. Everyone else can use them.
    -- Also, these testers (Reader 8+) are having problems with the tab order. Some of the radio button groups (which have no more than three options, Yes, No and NA) at first appear to be tabbing correctly, because the Yes option receives focus in the correct order... but randomly, tabbing through several fields, suddenly the No option will get focus... in a radio button group nowhere near the current tab location. Tabbing is rendered useless, then, because these anomalies are unpredictable and it doesn't appear there's anything I can do to prevent this from happening.
    It's pointless to delete and re-add the afflicted radio buttons. That has no effect... and the radio button groups are already in the correct order anyway. I don't know how this could possibly happen... But it doesn't happen for the Foxit or Acrobat testers.
    • Why would Reader be the only app that can't use the buttons and can't tab through the fields correctly? I'd think Adobe's own software would work best with their own file format. •
    Is Reader 8 the problem --- should those users all update to the newest version? I don't have any Reader 9+ testers yet. Nobody seems interested in it. The testers all assume the problems are MY fault, so nobody's happy with me and no one wants to bother testing the forms because there's always something wrong.
    <hair-pulling> I seriously regret upgrading to Acrobat 9.1.  I know other forum members who agree this thing is catastrophically buggy -- I've wasted  weeks trying to iron out all the problems I've been having with these forms, forms that should have been quick and simple to create, and in past versions of Acrobat, would have been. Yet I'm still tearing out my hair over tab order! Worse, I fear I'm close to losing my job for all the time wasted and all the projects I've fallen behind in because of this. <no /hair-pulling in sight>

    I have no clue, but it might make a difference depending on the form being produced in Acrobat versus Designer. Acrobat will take you both places and one of them may have an issue with backward compatibility. I have not heard of that, but it is a possibility.

  • Sound not working for apps

    The sound is not working for game apps, and possibly other apps. Sound effects work. Side switch is not on mute. Nothing, I repeat NOTHING, is muted. YouTube videos work. System sounds work. Games that are supposed to have sounds no longer have sounds.
    I also cannot update the iOS system. It says that there is no internet connection but the internet works fine for everything else. I am posting this from the device. Resetting and restarting have not worked. Also, the keyboard seems to be having minor problems as well, such as capitalizing, autocorrect, etc, which used to work but now doesn't.
    I have not used the iPad in over a year because of forgotten passcode, and now it has a bajillion problems!
    btw, how do I change the Apple ID username and email information?

    You said that you "reset" and that means different things to different people so we could use some clarification on that.
    For now, I would start with this. If you have already done this, please remember that is where the clarification is so important. Go to Settings>General>Reset>Reset all settings. The iPad will start up on its own when you do this. No data is lost. It all settings have to be entered again.
    IF you changed your Apple ID, go to settings>ITunes & App Store>Apple ID. Sign out in there and sign in with the new ID. This is worthwhile reading and should help.
    What to do after you change your Apple ID email address or password - Apple Support

  • Mail rules work for some users, don't work for others

    Ready to pull my hair out over this one:
    Leopard to Snow Leopard upgrade went uneventfully, except for the fact that server-side mail rules (accessed via browser at FQDN -> Mail Rules) work for several users (two, to be exact) and don't for the rest (about 15 or so).
    The usual culprits have been reviewed: 'Enable Server-Side Mail Rules' is checked in Mail -> Settings -> Filters, 'Allow users to configure server-side mail rules' is checked in Web -> Sites -> Web Services, users can create vacation notices and email rules without issue via browser, permissions look fine on the contents of /Library/Email Rules and /var/spool/imap/dovecot/sieve-scripts, logs give no indication of any foul play (at least the Email Rules -> debug.log generates the same entries for both functional and non-functional users), etc.
    I have noticed that /var/spool/imap/dovecot/sieve-scripts contains only two items, which - you guessed it - line up with the GUIDs of the two functional users. Theoretically every user with a rule should be represented here.
    As suggested in this thread:
    http://discussions.apple.com/thread.jspa?messageID=11171395&#11171395
    I created both a vacation notice and an email rule for several users, thinking that may force the folder creation for those users, but no dice. I even manually created folders for a few users with their GUIDs as the folder names and assigned each user ownership and read/write access. Still nothing. Created a few new test user accounts just to rule out any legacy account weirdness (although it's worth noting that I completely redid the OD and recreated user accounts after the upgrade) and replicated the problem with these, as well. Lastly, used Inspector to compare OD attributes between functional and non-functional accounts, with no glaring differences.
    Help!

    Did you find an answer? I encounter the same problem on my new MiniServer. Deleted and created all users several times, but just for some accounts mail is working.
    Do you have the answer?
    (new to this site, read a lot already, but not found)

Maybe you are looking for

  • Cannot send emails from iCloud account on any of my devices.

    Hi all, Since last week, my iCloud account has seemed to lose the ability to send emails. I am using: 10.10.02 Yosemite on Macbook pro 17" iOS 8.1.3 iPhone 5S iOS 8.1.2 iPad 3rd Gen This issue did not happen all at once, it has taken several days for

  • How do i send an email from an address that is not configured on my Mail accounts?

    Hi, i have an iPhone 4 (iOS 6.1.2) and first i want to describe the configuration of my email accounts on the server: I have lets say... 5 accounts (A,B,C,D and E), but i foward the B,C,D and E account to my A account and in my A account i can reply

  • Problem of 'Detail' button on WebUtil file upload dialog box...

    I've downloaded WebUtil and used it to upload files to server, there is a popup dialog box (I think it got invoked by webutil_file_transfer.Client_To_AS_with_progress) to select file, on the top of the dialog, it shows some buttons like 'Up One Level

  • Quick Selection Tool doesn't work

    This has probably been addressed, but can't seem to find it.  It's driving me nuts. In Elements 6.0,  I have found the Quick Selection Tool quite useful.  However, I often find that it does not work; not creating an outlined selection. Have others fo

  • Prores 4444 Problems

    Hi there, I'm digitizing video from a 4:4:4 HDSR through an AJA Kona 3 card (ver 6.0.3) to Final Cut trying to create ProRes 4444 files. However when I look at these files on the scopes my black level does not sit at 0 but rather it seems to add a se