Results 1 to 6 of 6
  1. #1


    Member Since
    Nov 20, 2008
    Location
    United Kingdom
    Posts
    9
    Specs:
    Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD
    Question xcode web browser help
    Hey there

    I am programming a simple browser in xcode, there is no URL box or buttons, a simple application that would when launched would load up a specified URL that i chose. Kinda like the iTunes store, you can't see it and cant right click on anything.

    But the problem is i have put the safari app in the window, and disabled resizing, but i cannot think how to specify a default URL.

    My first time using xcode and its brill, o easy to use but just can't think of this one lol.

    Also does anyone know how to chose an image for the app, lie when you download it from a webite usually the application has some image like quicktime has the Blue Q sign. that would be great to know.

    Thanks for your help everyone.
    Horatio Rodriguez

  2. #2


    Member Since
    Nov 20, 2008
    Location
    United Kingdom
    Posts
    9
    Specs:
    Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD
    Please
    any help people ??
    Horatio Rodriguez

  3. #3


    Member Since
    Mar 15, 2007
    Posts
    161
    Specs:
    17" MacBook Pro, 2.33GHz C2D, 2GB RAM
    Quote Originally Posted by subrodrigh View Post
    i cannot think how to specify a default URL.
    I'm not sure I understand what you are doing since you are talking about the Safari app. But if by chance you are just displaying a WebView in your own application, then to display a particular URL you should only need to use your WebView's setMainFrameURL selector.

    About the application icon, I only got around to trying this right now, and successfully got an icon into one of my applications by creating an .icns file using Icon Composer (included with Xcode), adding that file to my project and then specifying the filename as the "Icon File" value in the Properties pane of the Info window for the project build target (i.e., adding it to the Info.plist file). Didn't seem like too difficult of a process, but there may be other, better ways to do it. For document type icons the procedure would be similar (except for the location where the icon filename is specified, which should be pretty obvious when looking at the Properties pane).

  4. #4


    Member Since
    Nov 20, 2008
    Location
    United Kingdom
    Posts
    9
    Specs:
    Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD
    Thanks
    thanks very much, i believe that is what i am requiring to do,
    All my application has is the webview put onto it, nothing else, and i would like to have a URL specified to load when my application is launched.
    Would you possibly be able to guide me a little as to how i would do this.
    I do not have any experience with Xcode and it would be really appreciated.
    Horatio Rodriguez

  5. #5


    Member Since
    Mar 15, 2007
    Posts
    161
    Specs:
    17" MacBook Pro, 2.33GHz C2D, 2GB RAM
    Quote Originally Posted by subrodrigh View Post
    thanks very much, i believe that is what i am requiring to do,
    All my application has is the webview put onto it, nothing else, and i would like to have a URL specified to load when my application is launched.
    Would you possibly be able to guide me a little as to how i would do this.
    I do not have any experience with Xcode and it would be really appreciated.
    It should be literally one line of code. Just search for setMainFrameURL in the Xcode documentation, although you will also need to add the WebKit framework to your project if you haven't already done that.

  6. #6


    Member Since
    Nov 20, 2008
    Location
    United Kingdom
    Posts
    9
    Specs:
    Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD
    Thanks
    Thanks for that, i have looked up the documentation and it basically says this.

    setMainFrameURL:
    Sets the URL that the main frame loads.

    - (void)setMainFrameURL: (NSString *)URLString

    Discussion
    Functionally equivalent to [[webView mainFrame] loadRequest:].


    But i dont have any idea what i am supposed to do with this ?
    i'm sorry to be a pest but i dont have an coding experience.

    Thanks
    Horatio Rodriguez

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Which web browser is best?
    By Macowner2 in forum OS X - Operating System
    Replies: 17
    Last Post: 03-31-2015, 11:28 PM
  2. static web page on Web browser
    By milankamilya in forum Switcher Hangout
    Replies: 1
    Last Post: 09-20-2013, 06:50 AM
  3. Help With Xcode Web Browser
    By MrJC in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 11-06-2010, 12:15 PM
  4. Web browser ?'s
    By me399 in forum OS X - Apps and Games
    Replies: 2
    Last Post: 11-08-2007, 05:29 PM
  5. web browser
    By shimanok2 in forum Switcher Hangout
    Replies: 8
    Last Post: 02-27-2005, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •