Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-02-2010, 07:38 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 15
Default initWithContentsOfURL question

Hi,

I'm am pretty new to iphone developing and am trying to write an app that first gets the contents of a file off of a shared folder on a windows machine over a wifi connection.

I was wondering if I could tell me if I could use initWithContentsOfURL to do this or not? and if not is there a way to do this?

thanks
Kage333 is offline   Reply With Quote
Old 01-02-2010, 07:58 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 162
Default

Yes you can. This question's been answered many times here . Do a search on the forum

Cheers!
__________________
Iphone Developers Exchange --> iPhone Dev Exchange
Iphone Dev Tweets --> iPhone Developers Tweets
web20devxer is offline   Reply With Quote
Old 01-02-2010, 08:45 PM   #3 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
Default

Kage333 - if the folder is shared on a web server, and you know the URL, then yes, easy peasy. If you mean a SMB / samba share, then no, I don't think so.
__________________

Free Games!
smasher is offline   Reply With Quote
Old 01-02-2010, 09:46 PM   #4 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 15
Default

I apologize, I did try to do a search, but only found examples using web addresses, but I am just talking about on a closed wifi network, I guess a smb type of sharing. (I am not real familar with some terminology, but like connecting to 192.168.1.1/sharedfolder/file.txt)

does anyone know of a way to do this for the iPhone if initwithcontentsofURL won't work?

Thanks
Kage333 is offline   Reply With Quote
Reply

Bookmarks

Tags
file, initwithcontentsofurl, networking, sharing

Thread Tools
Display Modes

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 On



» Advertisements
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:14 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0