Results 1 to 6 of 6
Thread: xcode web browser help
-
12-17-2008, 05:57 PM #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
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
-
12-18-2008, 11:08 PM #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
Pleaseany help people ??
Horatio Rodriguez
-
12-19-2008, 12:46 AM #3
- Member Since
- Mar 15, 2007
- Posts
- 161
- Specs:
- 17" MacBook Pro, 2.33GHz C2D, 2GB RAM
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).
-
12-19-2008, 10:07 AM #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
Thanksthanks 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
-
12-19-2008, 11:00 AM #5
- Member Since
- Mar 15, 2007
- Posts
- 161
- Specs:
- 17" MacBook Pro, 2.33GHz C2D, 2GB RAM
-
12-19-2008, 11:08 AM #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
ThanksThanks 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.
ThanksHoratio Rodriguez
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Which web browser is best?
By Macowner2 in forum macOS - Operating SystemReplies: 17Last Post: 03-31-2015, 10:28 PM -
static web page on Web browser
By milankamilya in forum Switcher HangoutReplies: 1Last Post: 09-20-2013, 05:50 AM -
Help With Xcode Web Browser
By MrJC in forum macOS - Development and DarwinReplies: 0Last Post: 11-06-2010, 11:15 AM -
Web browser ?'s
By me399 in forum macOS - Apps and GamesReplies: 2Last Post: 11-08-2007, 04:29 PM -
web browser
By shimanok2 in forum Switcher HangoutReplies: 8Last Post: 02-27-2005, 05:13 PM