NSSharingService on mountain lion without sharing window

On mountain lion, I try the new sharing possiblities with the NSSharingService class of AppKit.framework
Everything goes fine with this three lines of code
NSArray* array = @[ @"myText", [NSImage imageNamed:@"myImageFile"] ];
NSSharingService* sharingServiceFB = [NSSharingService sharingServiceNamed:NSSharingServiceNamePostOnFacebook];
[sharingServiceFB performWithItems:array];
But, when I run this code awindow appears asking me if I want to "Publish" or "Cancel"
I'd like to do the same sharing without this window generated by the performWithItems function.
As I'm considering that the user of my application don't want to confirm.
I've looked in the NSSharingService reference and I don't see any functions that can help me.
I figure that I need send a "Publish" command to this window. I'm new to objective c and I don't really know how to figure it out (or even if it's the best solution).
Any help would be appreciated.

Thanks etresoft.
Learning the facebook API and building an app is one way.
I'm trying to find the quickiest way, at first.
The only way I managed that is using a virtuall mouse with this kind of command from an other program
            CGPoint pt;
            pt.x = 1000;
            pt.y = 400;
            CGEventRef moveMouse = CGEventCreateMouseEvent (NULL,kCGEventMouseMoved,pt,NULL);
            CGEventPost (kCGHIDEventTap, moveMouse);
CGEventRef cam move, click, drag, ...like an real mouse.
So, I'm using it to click on the publish button.
It's not a great solution but it works.
I wonder if it's possible in macOS developpement to have a pointer on a window (the front window of an application for example) and sends command to it (like enter-which means public in my case- or cancel).

Similar Messages

  • How can I use Boot Camp in Mountain Lion to mount Windows XP?

    I would like to use Windows XP on my 2009 13" MBP in Boot Camp? I have tried and it only asks for Windows 7 and when I use XP it says unable to install.
    1. Is this usual?
    2. If so, is there a work around?
    I do not have Windows 7 nor will I purchase it. I want to use this computer primarily as Widows XP as my new 2012 MBP is for Mac! Please help!
    Thank you!

    I concur with dalstott with the following additional information:
    1.  I am currently typing on my 2009 MBP.  I installed Windows XP in Bootcamp soon after I purchased it.  I then upgraded it to Snow Leopard and then later to Lion, and Lion is what I run today.
    Bootcamp continues to function with Windows XP installed.  I also have Parallels 7, and, as one of the features of Parallels, I am able to use the Bootcamp partition to run Windows XP within Parallels, as well, for concurrent use of Windows XP and Mac OS X Lion (saving me the duplication of hard disk space if I had to have both the Bootcamp partition and the very large file that Parallels would create for Windows XP).
    2.  There may well be a way for you to install Bootcamp and Windows XP in Mountain Lion without restoring Snow Leopard:
    This method requires access to a WIndows 7 upgrade disc, but you do not need the serial number and you never actually upgrade to WIndows 7 (stop after Step 8):
    User Tip: BootCamp - Install Windows XP & then Windows 7
    NOTE: Although the author of this User Tip suggests that it will work on all Macs running Mt. Lion, if you read the thread, you will see that others have had problems, and my post suggesting that this method will only work if the Mac could originally install Bootcamp with Windows XP such as yours and mine.
    3.  While searching for tip #2, I also came up with this suggestion:
    Installing WinXP on Lion or above without BootCamp
    Good luck and be sure to come back and let us know what works for you!

  • Upgrade from Snow Leopard to Mountain Lion erase my Windows partition?

    Dear all,
    I know some one might have asked it but I just wanna re-confirm.
    Would the upgrade from Snow Leopard to Mountain Lion erase my Windows partition? I am currently using Bootcamp on my Macbook Pro (Late 2010 Version) and I do not have parallel desktop. I asked the same question when Lion was released, but HK Apple Store said YES and Melbourne Apple Store said no. I am a bit confused now.
    Thank you for answering. Cheers!

    Nothing.
    That said, you should ALWAYS have a backup as anything can happen at anytime.

  • My app store on my macbook pro no longer shows that i purchased mountain lion. So when I am trying to do a reinstall it is not letting me put mountain lion, without re-purchasing it

    My app store on my macbook pro no longer shows that i purchased mountain lion. So when I am trying to do a reinstall it is not letting me put mountain lion, without re-purchasing it

    Pardon the question, but you are checking the mac app store > Purchases (not iTunes or iTunes store or the app store for iDevices)? Have you tried holding the Option key while clicking on Purchases (shows hidden purchases).

  • Trying to purchase Mountain Lion without a functioning hard drive

    Hello,
    My hard drive recently failed. Like an idiot, I misplaced the OS Snow Leopard disk in a move. I'd like to replace the hard drive & subsequently upgrade to Mountain Lion. Is there any way to purchase Mountain Lion without being able to access the app store?
    I have a copy of Leopard, so I was thinking I might install the old OS, purchase Mountain Lion, back up the new OS, wipe the drive & then install Mountain Lion. However, am I correct in assuming that it is not compatible with Mountain Lion?
    I'd really rather not have to buy Snow Leopard (again) and then buy Mountain Lion in order to achieve my goal.
    Thank you

    At least the price is low, scant comfort I know.

  • Purchase mountain lion without mac

    I can't re install mountain lion without purchasing. I need to purchase it without my MAC.

    You said re install, which means you must have already purchased it. You don't need to pay for it again. Login from any Mac you own and login to the App Store with the same ID you used to purchase any software. List your purchased software and Mountain Lion will have a Download button next to it. You will not be charged again.

  • Downloading Mountain Lion Without A Mac Available.

    The hard drive in my Mac has suddenly died beyond repair. I now have a brand new blank hard drive but obviously need a version of OSX on it. Is it possible to download Mountain lion without the use of a Mac? Thanks!

    No, there isn't. Call Apple to purchase replacement discs for your computer.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    The version of OS X installed on your computer originally is not available in any public release form. And, prior to Lion Apple never issued an OS X version you could download. Only incremental updates to a current version of OS X could be downloaded.

  • Can I download and use Mountain Lion without Lion downloaded first

    Can i download and use Mountain Lion if I haven't downloaded Lion yet?

    Welcome to the Apple Support Communities
    You can upgrade to OS X Mountain Lion from Mac OS X Snow Leopard or OS X Lion, so you can install Mountain Lion without having OS X Lion.
    Just open App Store and purchase OS X Mountain Lion. If you aren't using Mac OS X Snow Leopard, you have to buy it. Don't forget to make a backup with Time Machine and/or Carbon Copy Cloner before upgrading to OS X Mountain Lion. Also, check if your apps are supported > http://www.roaringapps.com

  • How to download Mountain Lion without the App Store?

    How I'm able to download and purchase Mountain Lion without App Store?
    I removed the App Store since it was annoying in my application bar and I didn't use it anyway. Right after I searched up all files connected to it and deleted them. This was about 6 months ago.
    Now I need to run a program that requires Java 7, which is only available for Lion+
    Since Mountain Lion was coming out in a few days I waited on it, now it's out and I can't purchase it >.>
    Screenshots:
    App Store:
    Trying to open it:
    Trying to purchase Mountain Lion from the site:

    Restore your system from your Time Machine backup.
    Or if you do not have a full system backup make one using Time Machine. Then download the 10.6.8 combo updater and appy it to your system <http://support.apple.com/kb/DL1399>.
    Or, you can purchase OS X 10.8 on your Macbook Pro, download, transfer the installer to iMac and install it. Just be sure and backup the installer to an external HDD BEFORE you install it on the iMac.
    In the future just remove the icon from the Dock and you won't have this problem. Also, make backups.

  • How can I downgrade my Os x Maverick to Os x mountain lion without time machine

    downgrade os x maverick to os x mountain lion without time machine back up and disc

    To downgrade you have to have a copy of the Mountain Lion installer, download from the Mac App Store but be sure to go to System Preferences > App Store first and uncheck boxes that will automatically install the download.
    You will have to erase the hard drive and then install from a saved copy of the installer, saved to a flash drive for instance.
    This is going to be a time consuming exercise, so is there a specific reason for wanting to downgrade?

  • What if i loaded osx mountain lion without having upgraded to osx snow leopard

    what if i loaded osx mountain lion without having upgraded to osx snow leopard

    I don't believe ML will upgrade on top of anything earlier then SL.  You might have to do a clean install.

  • Upgrading to os mountain lion without the App Store

    Hello, is it possible to upgrade to mountain lion without the App Store? Our iMac is 10.5.8 is it possible to buy a disk from an apple store to upgrade?

    1. Not directly. The installer must be downloaded from the Mac App Store and run on Mac OS X 10.6.8 or newer, including an external drive with a bootable OS on it. It also can't upgrade a 10.5.8 or earlier system.
    2. No.
    (83554)

  • I have a MacBook early 2008 running OS X Lion 10.7.5 (11G63). Could I upgrade to Mountain Lion without problems?

    I have a MacBook early 2008 running OS X Lion 10.7.5 (11G63). Could I upgrade to Mountain Lion without problems?

    No... the specs are
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    http://www.apple.com/osx/specs/

  • HT4414 If I upgrade to Mountain Lion, will my Windows based apps still work or will I have to reinstall them?

    If I upgrade to Mountain Lion, will my Windows based apps still work or will I need to reinstall them?

    As I said, the Windows applications are running in the virtual machine, using the Windows system.  It is not directed affected by upgrading Mac OS X to Mountain Lion.  So you should not need to re-install anything that runs in the Windows virtual machine.
    The real question is, does Parallel Desktop, which is the Mac OS X application, work properly under Mountain Lion?  You should go to
    http://www.parallels.com/products/desktop/
    and make sure you are using the latest version that has been updated to work with Mountain Lion.

  • Will upgrading from Lion to Mountain Lion delete my Windows partition (bootcamp)?

    On my other computer I upgraded from Snow Leopard to Mountain Lion, and the windows vista partition was completely deleted.  I was wondering if I upgrade from Lion to Mountain Lion on my other mac with Windows 7 will it be affected, or in other words, is Mountain Lion Bootcamp compatable with WIndows 7. Should I save it to an external hard drive?
    Thanks!

    No OS X installer deletes a Windows partition automatically. There is no reason for a Mountain Lion installer to do so when upgrading from Lion.
    Nevertheless, having backups is always a good idea no matter what. If you don't have them, then this is a good time for them.

Maybe you are looking for

  • How can we really delete all artifacts in workspace 9.3.1.?

    Is there a way to really delete all artifacts (all published oce's, bqy's, docs, WA reports, folders, subfolders, etc) from workspace 9.3.1? I noticed that deleting a folder does not remove the subfolders and docs from workspace but just makes it inv

  • Turn on layer visibility without exact name

    Hi all, This is my first post, and my first attempt to edit javascript for AI, so please bear with me! I am realtively good with actionscript, so I am trying my hand at this to streamline our image exporting process. I am using CS5 on a PC. We build

  • Aperture JPEG export observations

    I exported 3 jpegs full-size with the following compression quality number (1-12): 10 resulted in a file of ~ 2.5 MB 11 resulted in a file of ~ 3.5 MB 12 resulted in a file of (incredibly!) 10.5 MB !! Why is there such a big jump from 11 to 12? And y

  • Cannot install 1.7.1 on Snow Leopard

    I tried both the online and standalone installation. In both cases I get an error message saying "this will install only on Intel macs". This is insane. Why won't it install? Of course I have an Intel MacBook Pro. How can download an older version to

  • IDOC vs Message type

    Could some one explain me in detail what is an IDOC and what is a Message type with a simple example? Appreciated.