New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

xcode web browser help


Post Reply New Thread Subscribe

 
Thread Tools
subrodrigh

 
Member Since: Nov 20, 2008
Location: United Kingdom
Posts: 9
subrodrigh is on a distinguished road
Mac Specs: Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD

subrodrigh is offline
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
QUOTE Thanks
subrodrigh

 
Member Since: Nov 20, 2008
Location: United Kingdom
Posts: 9
subrodrigh is on a distinguished road
Mac Specs: Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD

subrodrigh is offline
any help people ??

Horatio Rodriguez
QUOTE Thanks
mystic_fm

 
Member Since: Mar 15, 2007
Posts: 161
mystic_fm will become famous soon enough
Mac Specs: 17" MacBook Pro, 2.33GHz C2D, 2GB RAM

mystic_fm is offline
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).
QUOTE Thanks
subrodrigh

 
Member Since: Nov 20, 2008
Location: United Kingdom
Posts: 9
subrodrigh is on a distinguished road
Mac Specs: Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD

subrodrigh is offline
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
QUOTE Thanks
mystic_fm

 
Member Since: Mar 15, 2007
Posts: 161
mystic_fm will become famous soon enough
Mac Specs: 17" MacBook Pro, 2.33GHz C2D, 2GB RAM

mystic_fm is offline
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.
QUOTE Thanks
subrodrigh

 
Member Since: Nov 20, 2008
Location: United Kingdom
Posts: 9
subrodrigh is on a distinguished road
Mac Specs: Macbook Pro 2.4 Ghz 2GB SDRAM 200GB HDD, Mac Mini Leopard Server, 2GHz 1GB SDRAM 80GB HDD

subrodrigh is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Objective - c program help (source included) | Protect Content of Applescript Application »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Web Browsers novicew OS X - Apps and Games 80 04-10-2010 12:02 PM
App to control iTunes via Web Browser? Mr.Preston OS X - Apps and Games 2 07-13-2008 05:25 PM
invalid web browser jfb67 Switcher Hangout 18 06-03-2006 02:01 AM
Simple CMS via web browser starbuck Web Design and Hosting 2 10-21-2005 11:19 AM
Setting default web browser tafika Web Design and Hosting 2 07-13-2005 05:31 PM

All times are GMT -4. The time now is 09:37 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?