Amazon.com Widgets Creating new NSFileManager
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 19, 2013, 05:00:41 PM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Programming in Objective-C, 4th edition
| |-+  Chapter 16
| | |-+  Creating new NSFileManager
Pages: [1]   Go Down
Print
Author Topic: Creating new NSFileManager  (Read 250 times)
mrf
Newbie
*
Posts: 1






« on: June 22, 2012, 05:08:13 PM »

Hello,

I've read through most of the book and must say it's excellent!

I've just started the 16th chapter. The first page describes how to create a new File Manager object

Code: (Objective-C)
[NSFileManager defaultManager]

What I don't understand is why the alloc "message" is not called here, like the previous chapters have talked about? I tried creating the object using

Code: (Objective-C)
[[NSFileManager alloc] init]

and that seems to do the same thing?

I also noted the same thing in the chapter about NSArray, where the code

Code: (Objective-C)
[NSArray array]

is used?

I'm sure there's a logic explanation to this, tho I have not found it explained in the book so far?
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.