• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [ NSKeyedArchiver ] archiveRootObject:toFile: hoses my directory's permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ NSKeyedArchiver ] archiveRootObject:toFile: hoses my directory's permissions


  • Subject: Re: [ NSKeyedArchiver ] archiveRootObject:toFile: hoses my directory's permissions
  • From: Greg Guerin <email@hidden>
  • Date: Sat, 30 May 2009 15:46:55 -0700

Erg Consultant wrote:

BOOL flushed = NO;

What purpose does this variable serve?


pathUtils = [ [ mypathUtils alloc ] init ];
Post the code for this class's alloc and init.


registryFileFullPath = [ pathUtils registryFileFullPath ];

Post the code for the registryFileFullPath method.

When run, what is the actual value of registryFileFullPath at this point in time?

For the actual pathname, do all the directories leading up to it exist? Are they searchable (have x bit set)? Is the last one writable?

What userid is the process running as?


                if( lastFlushTime )
                {
                    [ lastFlushTime release ];
                }

Conditional structures like this are unnecessary: nil is a valid receiver of the release message. This differs from many other languages, where nil (or null, or NULL) represents an invalid reference which must not be messaged or dereferenced.


  -- GG

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: [ NSKeyedArchiver ] archiveRootObject:toFile: hoses my directory's permissions
  • Next by Date: Several Questions
  • Previous by thread: Re: Cocoa Bindings and Dependent Keys question
  • Next by thread: Several Questions
  • Index(es):
    • Date
    • Thread