Allowing Advertising in Mac App

Discussion in 'Mac Programming' started by gwelmarten, Jan 9, 2013.

  1. macrumors 6502

    Joined:
    Jan 17, 2011
    Location:
    England!
    #1
    Hi
    I am looking at allowing advertising in my mac app. Can anybody tell me if this is possible? Are there any companies out there that offer this, like they do for iOS apps?
    Sam
     
  2. macrumors 603

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    #1 - Yes, you may have ads in your app.
    #2 - These apps may be sold on the App Store.
    #3 - I don't know of any companies giving libraries for adding ads to Mac Apps like they do for iOS apps. As far as I know (I admit I haven't looked into this much) - the best way to add ads to your Mac App is by using NSWebViews that load a local HTML page which grabs an ad, the same as any web ad works (something else I've never done... That's the basic idea I have.)
     
  3. thread starter macrumors 6502

    Joined:
    Jan 17, 2011
    Location:
    England!
    #3
    Isn't the problem with this though that however you code it, the linked webpage will open in a very small window - the size of the NSWebView?
     
  4. macrumors 603

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #4
    I've never used NSWebView on a Mac before but I'm pretty certain that it won't open another window... why not just try it and find out? Make a simple app with a load button below an NSWebView and when the button is pressed load a local page with an IFrame or something in it that links to macrumors.com, for example... seems like a simple enough test that will tell you whether you can embed web contents (in this case, macrumors) next to your app UI (the button and window).
     

Share This Page