Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 17, 2011, 03:34 AM   #1
dennisfett
macrumors newbie
 
Join Date: Apr 2011
Send a message via Skype™ to dennisfett
File Directory

Hi,

i've just logged in first time in this forum. I'm new to Objective C and would like you to help me
How to find a file directory in xCode and copy it for example to the Desktop?!

Greetings
Dennis
dennisfett is offline   0 Reply With Quote
Old Apr 17, 2011, 03:34 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
NSFileManager
robbieduncan is offline   0 Reply With Quote
Old Apr 17, 2011, 03:36 AM   #3
dennisfett
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Send a message via Skype™ to dennisfett
Thanks for the fast reply...If i've got questions i know where to ask
dennisfett is offline   0 Reply With Quote
Old Apr 17, 2011, 04:00 AM   #4
dennisfett
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Send a message via Skype™ to dennisfett
hm...can i pls get an example of code, and where to put it!?
dennisfett is offline   0 Reply With Quote
Old Apr 17, 2011, 04:03 AM   #5
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by dennisfett View Post
hm...can i pls get an example of code, and where to put it!?
I don't do examples. It is my firm belief that people just copy and paste without understanding what they are using which helps no one. I expect that there are examples in the Apple library.

As to where to put it how can we possibly know? We have no idea what your code looks like, what your goals and aims are.

I suggest you read the documentation and try things out. If you have code with specific questions or problems then you might get some help.
robbieduncan is offline   0 Reply With Quote
Old Apr 17, 2011, 04:28 AM   #6
dennisfett
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Send a message via Skype™ to dennisfett
ok.
is that code right?
- (BOOL)fileManagerNSFileManager *)fileManager shouldCopyItemAtPathNSString *)srcPath toPathNSString *)dstPath

i've added a fileManager class to my project.
If a button is pressed a folder should be copied to my Desktop. I don't know how to go on now. In the Apple Library is no example for that.
dennisfett is offline   0 Reply With Quote
Old Apr 17, 2011, 04:42 AM   #7
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
As noted in the documentation that is a delegate message. If you don't know what that means stop programming and go and read the documentation. This is just one of the documents you should have read and understood all of before writing any code.
robbieduncan is offline   0 Reply With Quote
Old Apr 17, 2011, 11:16 AM   #8
wlh99
macrumors 6502
 
Join Date: Feb 2008
Quote:
Originally Posted by dennisfett View Post
Hi,

i've just logged in first time in this forum. I'm new to Objective C and would like you to help me
How to find a file directory in xCode and copy it for example to the Desktop?!

Greetings
Dennis
How new to Objective-C are you? Do you know any other object-oriented programming?

What have you done you have so far on this project? Does it compile and do anything at all?

What you are asking is non-trivial for someone with no experience. Quite frankly, if someone posted the entire code to do what you want, you likely still couldn't make it work.
__________________
Warren Holybee
wlh99 is offline   0 Reply With Quote
Old Apr 18, 2011, 01:25 AM   #9
dennisfett
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Send a message via Skype™ to dennisfett
I'm really new, maybe 1 week ago i've started. I know not much...I can make an action and connect it in Interface Builder, so if a button is pressed anything happens. But i wouldn't know what to write, that anything happens. I will teach myself some basics now i think...
dennisfett is offline   0 Reply With Quote
Old Apr 18, 2011, 04:20 AM   #10
SidBala
macrumors 6502a
 
Join Date: Jun 2010
Do you have any prior programming experience?

Programming is much more than knowing how to use the interface builder.

To learn Obj-C, you really need to be familiar with C/C++ and OOP concepts.
SidBala is offline   0 Reply With Quote
Old Apr 18, 2011, 08:59 AM   #11
dennisfett
Thread Starter
macrumors newbie
 
Join Date: Apr 2011
Send a message via Skype™ to dennisfett
Quote:
Originally Posted by wlh99 View Post
Do you know any other object-oriented programming?
no

What is OOP?
Object Orientated Programing?
Pls tell me how to learn everything!
Books/Links... if necessary
dennisfett is offline   0 Reply With Quote
Old Apr 18, 2011, 10:21 AM   #12
notjustjay
macrumors 603
 
notjustjay's Avatar
 
Join Date: Sep 2003
Location: Canada, eh?
Quote:
Originally Posted by dennisfett View Post
no

What is OOP?
Object Orientated Programing?
Pls tell me how to learn everything!
Books/Links... if necessary
Yes, OOP is short for object oriented programming.

I don't want to sound rude, but Google is going to be much more help to you than posting messages in a forum if you need to learn some basics. It's going to be way faster to get answers than waiting for people to reply, for one thing. There are lots of tutorials on the web. And you should get used to using Google for looking up code examples -- something even experienced programmers do all the time.

In my job as a software engineer I use Google very regularly to look up APIs and get familiar with design patterns and data structures, especially when learning a new language. For example, when I had to quickly pick up some Ada, I didn't even know how to print text to the console, but Google bailed me out again and again.

Best of luck to you as you begin your journey of learning!
__________________
.
notjustjay is offline   0 Reply With Quote
Old Apr 18, 2011, 04:59 PM   #13
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Quote:
Originally Posted by dennisfett View Post
Pls tell me how to learn everything!
Books/Links... if necessary
Check out the How do I get started programming on the Mac (or iPhone)? guide that appears at the top of this forum.

The Kochan and Hillegass books (in that order) suggested under What book do you recommend for learning Cocoa? are highly recommended.

Read the getting started and required reading material in the Mac OS X Developer Library.
jiminaus is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
/etc/master.passwd: No such file or directory... headrogue Mac Basics and Help 5 Feb 8, 2014 03:07 PM
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory xpmrz Mac Basics and Help 0 Dec 31, 2013 02:59 PM
File and directory comparison tool UNCMo96 OS X 2 Mar 21, 2013 11:29 AM
-Bash No such file or directory os ck Mac Basics and Help 0 Jan 14, 2013 09:21 AM
Unknown file in home directory SisterRay OS X 10.8 Mountain Lion 9 Aug 31, 2012 12:34 PM

Forum Jump

All times are GMT -5. The time now is 11:23 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC